diff options
-rw-r--r-- | Lib/distutils/tests/support.py | 2 | ||||
-rw-r--r-- | Misc/NEWS | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/Lib/distutils/tests/support.py b/Lib/distutils/tests/support.py index d60da85..45c9441 100644 --- a/Lib/distutils/tests/support.py +++ b/Lib/distutils/tests/support.py @@ -63,6 +63,8 @@ class TempdirManager(object): super().tearDown() while self.tempdirs: d = self.tempdirs.pop() + if not os.path.exists(d): + continue shutil.rmtree(d, os.name in ('nt', 'cygwin')) def mkdtemp(self): @@ -312,6 +312,9 @@ C-API Library ------- +- Issue #8375: test_distutils now checks if the temporary directory are still + present before it cleans them. + - Issue #8374: Update the internal alias table in the :mod:`locale` module to cover recent locale changes and additions. |