Actually suppress warnings in test_at_least_import_untested_modules
inside the catch_warnings context manager.
This commit is contained in:
parent
e0154ed7ff
commit
d7bf8a5478
|
@ -9,6 +9,7 @@ import warnings
|
||||||
class TestUntestedModules(unittest.TestCase):
|
class TestUntestedModules(unittest.TestCase):
|
||||||
def test_at_least_import_untested_modules(self):
|
def test_at_least_import_untested_modules(self):
|
||||||
with warnings.catch_warnings():
|
with warnings.catch_warnings():
|
||||||
|
warnings.simplefilter("ignore")
|
||||||
import CGIHTTPServer
|
import CGIHTTPServer
|
||||||
import aifc
|
import aifc
|
||||||
import audiodev
|
import audiodev
|
||||||
|
|
Loading…
Reference in New Issue