diff options
author | Brett Cannon <bcannon@gmail.com> | 2008-05-10 03:16:38 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2008-05-10 03:16:38 (GMT) |
commit | ddf7a4214e41aad7b7bf249a04ce654add073999 (patch) | |
tree | 63874c833aa026319202bf57fce06059b2a0fc72 /Lib | |
parent | d5a0985265e373cc3c6b05622f77b71f21acb6e7 (diff) | |
download | cpython-ddf7a4214e41aad7b7bf249a04ce654add073999.zip cpython-ddf7a4214e41aad7b7bf249a04ce654add073999.tar.gz cpython-ddf7a4214e41aad7b7bf249a04ce654add073999.tar.bz2 |
Make sure warnings are not suppressed when testing for the raised
DeprecationWarning.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_py3kwarn.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_py3kwarn.py b/Lib/test/test_py3kwarn.py index 77b0d7d..e984803 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: |