mirror of
https://github.com/python/cpython.git
synced 2025-07-12 13:55:34 +00:00
Issue #19724: clear out colliding temp module.
This commit is contained in:
parent
9ae8742075
commit
2ba66ebc20
1 changed files with 2 additions and 0 deletions
|
@ -200,6 +200,8 @@ class ExtendPathTests(unittest.TestCase):
|
|||
dirname = self.create_init(pkgname)
|
||||
pathitem = os.path.join(dirname, pkgname)
|
||||
fullname = '{}.{}'.format(pkgname, modname)
|
||||
sys.modules.pop(fullname, None)
|
||||
sys.modules.pop(pkgname, None)
|
||||
try:
|
||||
self.create_submodule(dirname, pkgname, modname, 0)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue