From f4fd0bf7c1231e5613b706f044affb7f9f9b5366 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Fri, 19 Mar 2010 01:06:33 +0000 Subject: [PATCH] keep DeprecationWarning from failing test --- Lib/test/test_importhooks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_importhooks.py b/Lib/test/test_importhooks.py index aa5dd8de6c..20d6fae024 100644 --- a/Lib/test/test_importhooks.py +++ b/Lib/test/test_importhooks.py @@ -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 -- 2.50.1