Commit 3c9e9264 authored by Éric Araujo's avatar Éric Araujo

Branch merge

parents 55ab37cb aa066f5e
......@@ -54,9 +54,13 @@ class TempdirManager(object):
def setUp(self):
super().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().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