Fixed #8375 - test_distutils now checks what remains to be cleaned up during tearDown
This commit is contained in:
parent
7770f145b7
commit
46cd93a42f
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user