diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2013-10-23 05:46:53 (GMT) |
---|---|---|
committer | Eric Snow <ericsnowcurrently@gmail.com> | 2013-10-23 05:46:53 (GMT) |
commit | 0db06a1c42a280075adcd18fa7dafe416cf80315 (patch) | |
tree | e3f5ce44ae1faa0a9889a42eed93a9cf091d3d94 /Lib/test/test_importlib | |
parent | be9c1b133b78754a5a27e30bd35944d75647ee4c (diff) | |
parent | 776b888071337401ca577d32e8d5c14bf16bd420 (diff) | |
download | cpython-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.py | 2 |
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)) |