diff options
author | Eric V. Smith <eric@trueblade.com> | 2012-05-16 08:48:04 (GMT) |
---|---|---|
committer | Eric V. Smith <eric@trueblade.com> | 2012-05-16 08:48:04 (GMT) |
commit | 5cdc6308b6ac134ab65f2001e37b0c067dadef7d (patch) | |
tree | 549c4bd02a88490c007b4493d621010efe081a48 /Lib/test/test_pkgutil.py | |
parent | 28e68ea6eafbc7d2bac25ce2be3c046992cc73b6 (diff) | |
download | cpython-5cdc6308b6ac134ab65f2001e37b0c067dadef7d.zip cpython-5cdc6308b6ac134ab65f2001e37b0c067dadef7d.tar.gz cpython-5cdc6308b6ac134ab65f2001e37b0c067dadef7d.tar.bz2 |
Cleanup so subsequent tests won't fail. Needs to be moved into a support routine (see 14715).
Diffstat (limited to 'Lib/test/test_pkgutil.py')
-rw-r--r-- | Lib/test/test_pkgutil.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_pkgutil.py b/Lib/test/test_pkgutil.py index d5d7448..6025bcd 100644 --- a/Lib/test/test_pkgutil.py +++ b/Lib/test/test_pkgutil.py @@ -165,6 +165,9 @@ class ExtendPathTests(unittest.TestCase): def tearDown(self): del sys.path[0] del sys.path[0] + del sys.modules['foo'] + del sys.modules['foo.bar'] + del sys.modules['foo.baz'] def test_simple(self): self.create_submodule(self.dirname_0, self.pkgname, 'bar', 0) |