]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
test: Fix some rot in lesser-used test configs 2350/head
authorBen Darnell <ben@bendarnell.com>
Sun, 8 Apr 2018 17:57:59 +0000 (13:57 -0400)
committerBen Darnell <ben@bendarnell.com>
Sun, 8 Apr 2018 19:25:21 +0000 (15:25 -0400)
tornado/test/runtests.py
tornado/test/tcpclient_test.py
tox.ini

index d5bd769c9c3fb2929b9c4262795c2d5a22839c64..e4f938d395093936356b6e7d4c685ed4c929bd91 100644 (file)
@@ -137,6 +137,8 @@ def main():
     # 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\..*")
index c5a83342937f7ef1ab42973ffabdee4658da73fe..d7de42237f3abbacfaf23fc0d228ae7323d146c9 100644 (file)
@@ -77,7 +77,7 @@ class TCPClientTest(AsyncTestCase):
     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")
diff --git a/tox.ini b/tox.ini
index c8c4b67fddeea8b01bae9c8c16abe63eaf16403d..ddc6af28a558e7ecee2f6d517b0f19fd7d1afea9 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -35,7 +35,8 @@ envlist =
         {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,