projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28e68ea
)
Cleanup so subsequent tests won't fail. Needs to be moved into a support routine...
author
Eric V. Smith
<eric@trueblade.com>
Wed, 16 May 2012 08:48:04 +0000
(
04:48
-0400)
committer
Eric V. Smith
<eric@trueblade.com>
Wed, 16 May 2012 08:48:04 +0000
(
04:48
-0400)
Lib/test/test_pkgutil.py
patch
|
blob
|
history
diff --git
a/Lib/test/test_pkgutil.py
b/Lib/test/test_pkgutil.py
index d5d7448ac8a7a13e82b3d2dbea3d5c810377f8ff..6025bcd074296b4916470544ae04da06d410c785 100644
(file)
--- 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)