We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2619a22 commit 46f1232Copy full SHA for 46f1232
tests/run_tests.py
@@ -490,11 +490,9 @@ def test_pathstrip(self):
490
491
def remove_tree_force(folder):
492
for root, dirs, files in os.walk(folder):
493
- for it in dirs:
494
- chmod(os.path.join(root, it), stat.S_IWUSR | stat.S_IWGRP | stat.S_IWOTH)
495
for it in files:
496
chmod(os.path.join(root, it), stat.S_IWUSR | stat.S_IWGRP | stat.S_IWOTH)
497
- shutil.rmtree(folder)
+ shutil.rmtree(folder, ignore_errors=True)
498
499
# ----------------------------------------------------------------------------
500
0 commit comments