mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Fixed #6131: test_modulefinder leaked when run after test_distutils
This commit is contained in:
parent
578a228ee2
commit
3e3eace7d7
5 changed files with 11 additions and 10 deletions
|
@ -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):
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue