mirror of https://github.com/python/cpython
[Issue #19357] Ensure module "loaded" during tests gets forgotten.
This commit is contained in:
parent
27a856495e
commit
776b888071
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue