Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Checkins

cpython (3.2): Cleanup so subsequent tests won't fail. Needs to be moved into a support

 

 

Python checkins RSS feed   Index | Next | Previous | View Threaded


python-checkins at python

May 16, 2012, 1:49 AM

Post #1 of 1 (42 views)
Permalink
cpython (3.2): Cleanup so subsequent tests won't fail. Needs to be moved into a support

http://hg.python.org/cpython/rev/57936bd91bcf
changeset: 76983:57936bd91bcf
branch: 3.2
parent: 76981:d1fbfd9af5c5
user: Eric V. Smith <eric [at] trueblade>
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

Python checkins RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.