From 776b888071337401ca577d32e8d5c14bf16bd420 Mon Sep 17 00:00:00 2001 From: Eric Snow Date: Tue, 22 Oct 2013 23:27:42 -0600 Subject: [Issue #19357] Ensure module "loaded" during tests gets forgotten. --- Lib/test/test_importlib/import_/test_caching.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- cgit v0.12