Commit 9bbf4d70 authored by Victor Stinner's avatar Victor Stinner Committed by GitHub

bpo-37359: Fix regrtest --cleanup (GH-14336)

parent a8b27e62
......@@ -592,8 +592,8 @@ class Regrtest:
path = os.path.join(self.tmp_dir, 'test_python_*')
print("Cleanup %s directory" % self.tmp_dir)
for name in glob.glob(path):
print("Remove directory: %s" % name)
if os.path.isdir(name):
print("Remove directory: %s" % name)
support.rmtree(name)
else:
print("Remove file: %s" % name)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment