summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_py3kwarn.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_py3kwarn.py')
-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: