# 2.7 and 3.2
warnings.filterwarnings("ignore", category=DeprecationWarning,
message="Please use assert.* instead")
+ warnings.filterwarnings("ignore", category=PendingDeprecationWarning,
+ message="Please use assert.* instead")
# Twisted 15.0.0 triggers some warnings on py3 with -bb.
warnings.filterwarnings("ignore", category=BytesWarning,
module=r"twisted\..*")
def skipIfLocalhostV4(self):
# The port used here doesn't matter, but some systems require it
# to be non-zero if we do not also pass AI_PASSIVE.
- addrinfo = yield Resolver().resolve('localhost', 80)
+ addrinfo = self.io_loop.run_sync(lambda: Resolver().resolve('localhost', 80))
families = set(addr[0] for addr in addrinfo)
if socket.AF_INET6 not in families:
self.skipTest("localhost does not resolve to ipv6")
{py2,py3}-full-caresresolver,
# Other configurations; see comments below.
- {py2,py3}-{monotonic,opt},
+ py2-monotonic,
+ {py2,py3}-opt,
py3-{lang_c,lang_utf8},
py2-locale,
{py27,py3}-unittest2,