From ddf7a4214e41aad7b7bf249a04ce654add073999 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Sat, 10 May 2008 03:16:38 +0000 Subject: [PATCH] Make sure warnings are not suppressed when testing for the raised DeprecationWarning. --- Lib/test/test_py3kwarn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_py3kwarn.py b/Lib/test/test_py3kwarn.py index 77b0d7d6217..e9848032101 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: