From 146a07e808d501d32052549c4b1eec75ee293ba2 Mon Sep 17 00:00:00 2001 From: Ben Darnell Date: Sun, 12 Jun 2016 16:28:35 -0400 Subject: [PATCH] test: Silence PendingDeprecationWarning on nightly python --- tornado/test/runtests.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tornado/test/runtests.py b/tornado/test/runtests.py index ca82d66b9..f4dd46de3 100644 --- a/tornado/test/runtests.py +++ b/tornado/test/runtests.py @@ -121,6 +121,10 @@ def main(): # Twisted 15.0.0 triggers some warnings on py3 with -bb. warnings.filterwarnings("ignore", category=BytesWarning, module=r"twisted\..*") + # The __aiter__ protocol changed in python 3.5.2. + # Silence the warning until we can drop 3.5.[01]. + warnings.filterwarnings("ignore", category=PendingDeprecationWarning, + message=".*legacy __aiter__ protocol") logging.getLogger("tornado.access").setLevel(logging.CRITICAL) -- 2.47.2