mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
Fixed #8375 - test_distutils now checks what remains to be cleaned up during tearDown
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user