]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[Issue #19357] Ensure module "loaded" during tests gets forgotten.
authorEric Snow <ericsnowcurrently@gmail.com>
Wed, 23 Oct 2013 05:27:42 +0000 (23:27 -0600)
committerEric Snow <ericsnowcurrently@gmail.com>
Wed, 23 Oct 2013 05:27:42 +0000 (23:27 -0600)
Lib/test/test_importlib/import_/test_caching.py

index bf680277d64b43cf22e7fe2e1684f39929c3435a..207378a6fb722ba34eb7d99da492adc0f89cfa7c 100644 (file)
@@ -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))