From: Eric Snow Date: Fri, 22 Nov 2013 20:55:23 +0000 (-0700) Subject: Issue #19724: clear out colliding temp module. X-Git-Tag: v3.4.0b1~102^2^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2ba66ebc20347671082094aac538f13e1fa1fcca;p=thirdparty%2FPython%2Fcpython.git Issue #19724: clear out colliding temp module. --- diff --git a/Lib/test/test_pkgutil.py b/Lib/test/test_pkgutil.py index 52dd0bc73c9c..d73b2117d3cc 100644 --- a/Lib/test/test_pkgutil.py +++ b/Lib/test/test_pkgutil.py @@ -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)