#NEWLINE# def test_config_with_incorrect_address_config_ipv6( tmpdir ) : #NEWLINE# #INDENT# p = tmpdir . mkdir ( 'conf' ) . join ( 'dispatch.conf' ) #NEWLINE# p . write ( 'address=/example.com/::1???' ) #NEWLINE# d = DispatchResolver ( str ( p . realpath ( ) ) , servers = [ ( '127.0.0.2' , 53 ) ] ) #NEWLINE# r = d . _matchAddress ( b'example.com' , r . _aaaaRecords ) #NEWLINE# assert ( r is None )