Branch merge

This commit is contained in:
Éric Araujo 2011-08-26 16:30:22 +02:00
commit 2f24fda195

View file

@ -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()