[Python-checkins] r79086 - python/trunk/Lib/test/test_importhooks.py

benjamin.peterson python-checkins at python.org
Fri Mar 19 02:06:33 CET 2010


Author: benjamin.peterson
Date: Fri Mar 19 02:06:33 2010
New Revision: 79086
Log:
keep DeprecationWarning from failing test
Modified:
 python/trunk/Lib/test/test_importhooks.py
Modified: python/trunk/Lib/test/test_importhooks.py
==============================================================================
--- python/trunk/Lib/test/test_importhooks.py	(original)
+++ python/trunk/Lib/test/test_importhooks.py	Fri Mar 19 02:06:33 2010
@@ -247,7 +247,7 @@
 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


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /