]> granicus.if.org Git - python/commitdiff
Actually suppress warnings in test_at_least_import_untested_modules
authorR. David Murray <rdmurray@bitdance.com>
Mon, 30 Mar 2009 23:10:37 +0000 (23:10 +0000)
committerR. David Murray <rdmurray@bitdance.com>
Mon, 30 Mar 2009 23:10:37 +0000 (23:10 +0000)
inside the catch_warnings context manager.

Lib/test/test_sundry.py

index 74d043625b628378e3021b232fea8425af85db47..48cbcd60f814cc1a1fa5b0b56029618959b5d8f0 100644 (file)
@@ -9,6 +9,7 @@ import warnings
 class TestUntestedModules(unittest.TestCase):
     def test_at_least_import_untested_modules(self):
         with warnings.catch_warnings():
+            warnings.simplefilter("ignore")
             import CGIHTTPServer
             import aifc
             import audiodev