python-tornado/update-warning-config-to-fix-tests-on-python-3.6-nightly.patch

15 lines
672 B
Diff
Raw Normal View History

2016-12-13 00:52:40 +00:00
diff --git a/tornado/test/runtests.py b/tornado/test/runtests.py
index 526ae5d..36a841f 100644
--- a/tornado/test/runtests.py
+++ b/tornado/test/runtests.py
@@ -124,6 +124,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)