summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_importlib
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2013-10-23 05:46:53 (GMT)
committerEric Snow <ericsnowcurrently@gmail.com>2013-10-23 05:46:53 (GMT)
commit0db06a1c42a280075adcd18fa7dafe416cf80315 (patch)
treee3f5ce44ae1faa0a9889a42eed93a9cf091d3d94 /Lib/test/test_importlib
parentbe9c1b133b78754a5a27e30bd35944d75647ee4c (diff)
parent776b888071337401ca577d32e8d5c14bf16bd420 (diff)
downloadcpython-0db06a1c42a280075adcd18fa7dafe416cf80315.zip
cpython-0db06a1c42a280075adcd18fa7dafe416cf80315.tar.gz
cpython-0db06a1c42a280075adcd18fa7dafe416cf80315.tar.bz2
[Issue #19357] Ensure module "loaded" during tests gets forgotten.
Diffstat (limited to 'Lib/test/test_importlib')
-rw-r--r--Lib/test/test_importlib/import_/test_caching.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_importlib/import_/test_caching.py b/Lib/test/test_importlib/import_/test_caching.py
index bf68027..207378a 100644
--- a/Lib/test/test_importlib/import_/test_caching.py
+++ b/Lib/test/test_importlib/import_/test_caching.py
@@ -24,7 +24,7 @@ class UseCache(unittest.TestCase):
def test_using_cache(self):
# [use cache]
module_to_use = "some module found!"
- with util.uncache(module_to_use):
+ with util.uncache('some_module'):
sys.modules['some_module'] = module_to_use
module = import_util.import_('some_module')
self.assertEqual(id(module_to_use), id(module))