]> granicus.if.org Git - python/commitdiff
keep DeprecationWarning from failing test
authorBenjamin Peterson <benjamin@python.org>
Fri, 19 Mar 2010 01:06:33 +0000 (01:06 +0000)
committerBenjamin Peterson <benjamin@python.org>
Fri, 19 Mar 2010 01:06:33 +0000 (01:06 +0000)
Lib/test/test_importhooks.py

index aa5dd8de6ccf99e5184a3846936170e3f0cca144..20d6fae02432610d201e72b03d4fc8c0dea97577 100644 (file)
@@ -247,7 +247,7 @@ class ImportHooksTestCase(ImportHooksBaseTestCase):
             for n in sys.modules.keys():
                 if n.startswith(parent):
                     del sys.modules[n]
-        with test_support.check_py3k_warnings():
+        with test_support.check_py3k_warnings(), test_support.check_warnings():
             for mname in mnames:
                 m = __import__(mname, globals(), locals(), ["__dummy__"])
                 m.__loader__  # to make sure we actually handled the import