diff options
author | Benjamin Peterson <benjamin@python.org> | 2010-03-19 01:06:33 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2010-03-19 01:06:33 (GMT) |
commit | f4fd0bf7c1231e5613b706f044affb7f9f9b5366 (patch) | |
tree | e7604c7db10a7bc595cfc3c9a8da2e013625e461 /Lib | |
parent | a70f3496203cd68d88208a21d90f0ca3503aa2f6 (diff) | |
download | cpython-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.py | 2 |
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 |