Merged revisions 73008 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/trunk

........
  r73008 | tarek.ziade | 2009-05-29 17:08:07 +0900 | 1 line

  Fixed #6131: test_modulefinder leaked when run after test_distutils
........
This commit is contained in:
Hirokazu Yamamoto 2009-05-29 09:14:04 +00:00
parent 2bcde144ae
commit 2703fd9134
5 changed files with 11 additions and 10 deletions

View file

@ -22,16 +22,14 @@ class BuildDumbTestCase(support.TempdirManager,
unittest.TestCase):
def setUp(self):
support.TempdirManager.setUp(self)
support.LoggingSilencer.setUp(self)
super(BuildDumbTestCase, self).setUp()
self.old_location = os.getcwd()
self.old_sys_argv = sys.argv[:]
def tearDown(self):
os.chdir(self.old_location)
sys.argv = self.old_sys_argv[:]
support.LoggingSilencer.tearDown(self)
support.TempdirManager.tearDown(self)
super(BuildDumbTestCase, self).tearDown()
def test_simple_built(self):