[Python-checkins] cpython (3.2): Cleanup so subsequent tests won't fail. Needs to be moved into a support
eric.smith
python-checkins at python.org
Wed May 16 10:49:34 CEST 2012
http://hg.python.org/cpython/rev/57936bd91bcf
changeset: 76983:57936bd91bcf
branch: 3.2
parent: 76981:d1fbfd9af5c5
user: Eric V. Smith <eric at trueblade.com>
date: Wed May 16 04:48:04 2012 -0400
summary:
Cleanup so subsequent tests won't fail. Needs to be moved into a support routine (see 14715).
files:
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
--- a/Lib/test/test_pkgutil.py
+++ b/Lib/test/test_pkgutil.py
@@ -165,6 +165,9 @@
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)
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list