From: Eric V. Smith Date: Wed, 16 May 2012 08:48:04 +0000 (-0400) Subject: Cleanup so subsequent tests won't fail. Needs to be moved into a support routine... X-Git-Tag: v3.3.0a4~151^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5cdc6308b6ac134ab65f2001e37b0c067dadef7d;p=python Cleanup so subsequent tests won't fail. Needs to be moved into a support routine (see 14715). --- diff --git a/Lib/test/test_pkgutil.py b/Lib/test/test_pkgutil.py index d5d7448ac8..6025bcd074 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)