diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2011-08-25 16:32:54 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-08-25 16:32:54 (GMT) |
commit | bcf147cb72070f180e97929d18f58e19157cfbb5 (patch) | |
tree | d7a13e666ae7a335f7a209a2bf30f81c4682fd0e /Lib/distutils | |
parent | ced7eda71721b595544e56484e6e08a34ae2311d (diff) | |
parent | 4fc80b62ba8e6390019a50947daa03320c047bcd (diff) | |
download | cpython-bcf147cb72070f180e97929d18f58e19157cfbb5.zip cpython-bcf147cb72070f180e97929d18f58e19157cfbb5.tar.gz cpython-bcf147cb72070f180e97929d18f58e19157cfbb5.tar.bz2 |
Issue #12333: fix test_distutils failures under Solaris and derivatives
Diffstat (limited to 'Lib/distutils')
-rw-r--r-- | Lib/distutils/tests/support.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/distutils/tests/support.py b/Lib/distutils/tests/support.py index dc0e660..44fcd6b 100644 --- a/Lib/distutils/tests/support.py +++ b/Lib/distutils/tests/support.py @@ -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() |