From: Brett Cannon Date: Sat, 10 May 2008 03:16:38 +0000 (+0000) Subject: Make sure warnings are not suppressed when testing for the raised X-Git-Tag: v2.6b1~534 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ddf7a4214e41aad7b7bf249a04ce654add073999;p=python Make sure warnings are not suppressed when testing for the raised DeprecationWarning. --- diff --git a/Lib/test/test_py3kwarn.py b/Lib/test/test_py3kwarn.py index 77b0d7d621..e984803210 100644 --- a/Lib/test/test_py3kwarn.py +++ b/Lib/test/test_py3kwarn.py @@ -142,7 +142,7 @@ class TestStdlibRemovals(unittest.TestCase): original_module = sys.modules[module_name] del sys.modules[module_name] try: - with catch_warning() as w: + with catch_warning(record=False) as w: warnings.filterwarnings("error", ".+ removed", DeprecationWarning) try: