Actually suppress warnings in test_at_least_import_untested_modules

inside the catch_warnings context manager.
This commit is contained in:
R. David Murray 2009-03-30 23:10:37 +00:00
parent e0154ed7ff
commit d7bf8a5478
1 changed files with 1 additions and 0 deletions

View 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