summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2008-05-10 03:16:38 (GMT)
committerBrett Cannon <bcannon@gmail.com>2008-05-10 03:16:38 (GMT)
commitddf7a4214e41aad7b7bf249a04ce654add073999 (patch)
tree63874c833aa026319202bf57fce06059b2a0fc72 /Lib
parentd5a0985265e373cc3c6b05622f77b71f21acb6e7 (diff)
downloadcpython-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.py2
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: