[3.7] bpo-37359: Fix regrtest --cleanup (GH-14336) by miss-islington · Pull Request #14338 · python/cpython

Expand Up @@ -592,8 +592,8 @@ def cleanup(self): 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) Expand Down