summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2013-10-23 05:27:42 (GMT)
committerEric Snow <ericsnowcurrently@gmail.com>2013-10-23 05:27:42 (GMT)
commit776b888071337401ca577d32e8d5c14bf16bd420 (patch)
tree69a649d6c92bc6f718f7b4060462c209df3d6d42 /Lib
parent27a856495eb1f61b21ab47bc9be86be57176153a (diff)
downloadcpython-776b888071337401ca577d32e8d5c14bf16bd420.zip
cpython-776b888071337401ca577d32e8d5c14bf16bd420.tar.gz
cpython-776b888071337401ca577d32e8d5c14bf16bd420.tar.bz2
[Issue #19357] Ensure module "loaded" during tests gets forgotten.
Diffstat (limited to 'Lib')
-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))