From: Ben Darnell Date: Sun, 12 Jun 2016 20:28:35 +0000 (-0400) Subject: test: Silence PendingDeprecationWarning on nightly python X-Git-Tag: v4.4.0b1~5^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=146a07e808d501d32052549c4b1eec75ee293ba2;p=thirdparty%2Ftornado.git test: Silence PendingDeprecationWarning on nightly python --- 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)