[Python-checkins] r62986 - python/trunk/Lib/test/test_py3kwarn.py

brett.cannon python-checkins at python.org
Sat May 10 05:16:39 CEST 2008


Author: brett.cannon
Date: Sat May 10 05:16:38 2008
New Revision: 62986

Log:
Make sure warnings are not suppressed when testing for the raised
DeprecationWarning.


Modified:
   python/trunk/Lib/test/test_py3kwarn.py

Modified: python/trunk/Lib/test/test_py3kwarn.py
==============================================================================
--- python/trunk/Lib/test/test_py3kwarn.py	(original)
+++ python/trunk/Lib/test/test_py3kwarn.py	Sat May 10 05:16:38 2008
@@ -142,7 +142,7 @@
             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:


More information about the Python-checkins mailing list