[Python-checkins] r62975 - python/trunk/Lib/test/test_support.py

brett.cannon python-checkins at python.org
Sat May 10 04:54:53 CEST 2008


Author: brett.cannon
Date: Sat May 10 04:54:52 2008
New Revision: 62975

Log:
Suppress deprecations for packages as well when using
test.test_support.import_module().


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

Modified: python/trunk/Lib/test/test_support.py
==============================================================================
--- python/trunk/Lib/test/test_support.py	(original)
+++ python/trunk/Lib/test/test_support.py	Sat May 10 04:54:52 2008
@@ -42,7 +42,8 @@
     available."""
     with catch_warning(record=False):
         if deprecated:
-            warnings.filterwarnings("ignore", ".+ module", DeprecationWarning)
+            warnings.filterwarnings("ignore", ".+ (module|package)",
+                                    DeprecationWarning)
         try:
             module = __import__(name, level=0)
         except ImportError:


More information about the Python-checkins mailing list