commit
e6db81650e
tornado/test
|
@ -44,7 +44,7 @@ class _ResolverTestMixin(object):
|
||||||
@gen_test
|
@gen_test
|
||||||
def test_localhost(self: typing.Any):
|
def test_localhost(self: typing.Any):
|
||||||
addrinfo = yield self.resolver.resolve("localhost", 80, socket.AF_UNSPEC)
|
addrinfo = yield self.resolver.resolve("localhost", 80, socket.AF_UNSPEC)
|
||||||
# Most of the time localhost resovles to either the ipv4 loopback
|
# Most of the time localhost resolves to either the ipv4 loopback
|
||||||
# address alone, or ipv4+ipv6. But some versions of pycares will only
|
# address alone, or ipv4+ipv6. But some versions of pycares will only
|
||||||
# return the ipv6 version, so we have to check for either one alone.
|
# return the ipv6 version, so we have to check for either one alone.
|
||||||
self.assertTrue(
|
self.assertTrue(
|
||||||
|
|
Loading…
Reference in New Issue