summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-03-19 01:06:33 (GMT)
committerBenjamin Peterson <benjamin@python.org>2010-03-19 01:06:33 (GMT)
commitf4fd0bf7c1231e5613b706f044affb7f9f9b5366 (patch)
treee7604c7db10a7bc595cfc3c9a8da2e013625e461 /Lib
parenta70f3496203cd68d88208a21d90f0ca3503aa2f6 (diff)
downloadcpython-f4fd0bf7c1231e5613b706f044affb7f9f9b5366.zip
cpython-f4fd0bf7c1231e5613b706f044affb7f9f9b5366.tar.gz
cpython-f4fd0bf7c1231e5613b706f044affb7f9f9b5366.tar.bz2
keep DeprecationWarning from failing test
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_importhooks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_importhooks.py b/Lib/test/test_importhooks.py
index aa5dd8d..20d6fae 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