From 06638c8a5f9164c9567f26887c99bd592a10ec7d Mon Sep 17 00:00:00 2001 From: Ben Darnell Date: Tue, 28 Oct 2014 09:16:28 -0400 Subject: [PATCH] Fix compatibility with just-released unittest2 0.6. This release added some PendingDeprecationWarnings that were not there previously (and were DeprecationWarnings instead in newer pythons) --- tornado/test/runtests.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tornado/test/runtests.py b/tornado/test/runtests.py index a80b80b92..27cb18b1a 100644 --- a/tornado/test/runtests.py +++ b/tornado/test/runtests.py @@ -92,6 +92,10 @@ def main(): # 2.7 and 3.2 warnings.filterwarnings("ignore", category=DeprecationWarning, message="Please use assert.* instead") + # unittest2 0.6 on py26 reports these as PendingDeprecationWarnings + # instead of DeprecationWarnings. + warnings.filterwarnings("ignore", category=PendingDeprecationWarning, + message="Please use assert.* instead") logging.getLogger("tornado.access").setLevel(logging.CRITICAL) -- 2.47.3