]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Update warning config to fix tests on python 3.6 nightly
authorBen Darnell <ben@bendarnell.com>
Sun, 20 Nov 2016 12:30:49 +0000 (20:30 +0800)
committerBen Darnell <ben@bendarnell.com>
Sun, 20 Nov 2016 12:32:42 +0000 (20:32 +0800)
tornado/test/runtests.py

index f4dd46de36484de525e8493247fe2dc01986e18b..1d6199f35b5affeb9dfab518992ea8929331095a 100644 (file)
@@ -125,6 +125,9 @@ def main():
     # Silence the warning until we can drop 3.5.[01].
     warnings.filterwarnings("ignore", category=PendingDeprecationWarning,
                             message=".*legacy __aiter__ protocol")
+    # 3.5.2's PendingDeprecationWarning became a DeprecationWarning in 3.6.
+    warnings.filterwarnings("ignore", category=DeprecationWarning,
+                            message=".*legacy __aiter__ protocol")
 
     logging.getLogger("tornado.access").setLevel(logging.CRITICAL)