Kaydet (Commit) 776b8880 authored tarafından Eric Snow's avatar Eric Snow

[Issue #19357] Ensure module "loaded" during tests gets forgotten.

üst 27a85649
......@@ -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))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment