Commit beedb510 authored by Jesus Cea's avatar Jesus Cea

Issue #12333: fix test_distutils failures under Solaris and derivatives. Patch by Antoine Pitrou

parent e5ed1dfa
......@@ -63,9 +63,13 @@ class TempdirManager(object):
def setUp(self):
super(TempdirManager, self).setUp()
self.old_cwd = os.getcwd()
self.tempdirs = []
def tearDown(self):
# Restore working dir, for Solaris and derivatives, where rmdir()
# on the current directory fails.
os.chdir(self.old_cwd)
super(TempdirManager, self).tearDown()
while self.tempdirs:
d = self.tempdirs.pop()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment