summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-06-24 11:19:48 (GMT)
committerGitHub <noreply@github.com>2019-06-24 11:19:48 (GMT)
commit9bbf4d7083a819cbcee2a6cd3df2802d4c50f734 (patch)
tree90876cdb9b826145af5c02472a66d04a507173ed
parenta8b27e623d75377aabe50df27e97cab4e81a174a (diff)
downloadcpython-9bbf4d7083a819cbcee2a6cd3df2802d4c50f734.zip
cpython-9bbf4d7083a819cbcee2a6cd3df2802d4c50f734.tar.gz
cpython-9bbf4d7083a819cbcee2a6cd3df2802d4c50f734.tar.bz2
bpo-37359: Fix regrtest --cleanup (GH-14336)
-rw-r--r--Lib/test/libregrtest/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/libregrtest/main.py b/Lib/test/libregrtest/main.py
index 98b4420..1dfbe47 100644
--- a/Lib/test/libregrtest/main.py
+++ b/Lib/test/libregrtest/main.py
@@ -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)