Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0db06a1

Browse files
[Issue #19357] Ensure module "loaded" during tests gets forgotten.
2 parents be9c1b1 + 776b888 commit 0db06a1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_importlib/import_/test_caching.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class UseCache(unittest.TestCase):
2424
def test_using_cache(self):
2525
# [use cache]
2626
module_to_use = "some module found!"
27-
with util.uncache(module_to_use):
27+
with util.uncache('some_module'):
2828
sys.modules['some_module'] = module_to_use
2929
module = import_util.import_('some_module')
3030
self.assertEqual(id(module_to_use), id(module))

0 commit comments

Comments
 (0)