summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_warnings.py
diff options
context:
space:
mode:
authorNick Coghlan <ncoghlan@gmail.com>2009-04-22 15:26:04 (GMT)
committerNick Coghlan <ncoghlan@gmail.com>2009-04-22 15:26:04 (GMT)
commit5533ff6a2ea1560cf6700c07096f34c5b9bf5874 (patch)
tree3b18b0f97f12b77acee779264a83622a6e08f361 /Lib/test/test_warnings.py
parentaca19e6a740c424aec243a4721b18d12e9129aa7 (diff)
downloadcpython-5533ff6a2ea1560cf6700c07096f34c5b9bf5874.zip
cpython-5533ff6a2ea1560cf6700c07096f34c5b9bf5874.tar.gz
cpython-5533ff6a2ea1560cf6700c07096f34c5b9bf5874.tar.bz2
Issue 5354: Change API for import_fresh_module() to better support test_warnings use case (also fixes some bugs in the original implementation)
Diffstat (limited to 'Lib/test/test_warnings.py')
-rw-r--r--Lib/test/test_warnings.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_warnings.py b/Lib/test/test_warnings.py
index 4c3b43a..9764783 100644
--- a/Lib/test/test_warnings.py
+++ b/Lib/test/test_warnings.py
@@ -10,8 +10,8 @@ import warning_tests
import warnings as original_warnings
-py_warnings = test_support.import_fresh_module('warnings', ['_warnings'])
-c_warnings = test_support.import_fresh_module('warnings')
+py_warnings = test_support.import_fresh_module('warnings', blocked=['_warnings'])
+c_warnings = test_support.import_fresh_module('warnings', fresh=['_warnings'])
@contextmanager
def warnings_state(module):