Mercurial > cpython-lru_cache-weakref
changeset 72263:137e45f15c0b 3.2 v3.2.2
Issue #12333: fix test_distutils failures under Solaris and derivatives
| author | Antoine Pitrou <solipsis@pitrou.net> |
|---|---|
| date | Thu, 25 Aug 2011 18:32:02 +0200 |
| parents | 2661b7505f72 |
| children | 7fbcde1b5229 |
| files | Lib/distutils/tests/support.py |
| diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/Lib/distutils/tests/support.py Sat Sep 03 11:17:55 2011 +0200 +++ b/Lib/distutils/tests/support.py Thu Aug 25 18:32:02 2011 +0200 @@ -54,9 +54,13 @@ 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()
