summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorEric V. Smith <eric@trueblade.com>2012-05-16 08:49:22 (GMT)
committerEric V. Smith <eric@trueblade.com>2012-05-16 08:49:22 (GMT)
commit313fbe21068038099cc4e57ae4bcd9e8a06e8b43 (patch)
treef7feb715376586aad41fc89be50c3c93349dc9f8 /Lib
parenta32df1e0e690e098960cbd931f15c31ddb051df6 (diff)
parent5cdc6308b6ac134ab65f2001e37b0c067dadef7d (diff)
downloadcpython-313fbe21068038099cc4e57ae4bcd9e8a06e8b43.zip
cpython-313fbe21068038099cc4e57ae4bcd9e8a06e8b43.tar.gz
cpython-313fbe21068038099cc4e57ae4bcd9e8a06e8b43.tar.bz2
Merge from 3.2.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_pkgutil.py3
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)