summaryrefslogtreecommitdiff
path: root/src/_pytest/tmpdir.py
diff options
context:
space:
mode:
authorRonny Pfannschmidt <opensource@ronnypfannschmidt.de>2018-09-28 23:09:00 +0200
committerRonny Pfannschmidt <opensource@ronnypfannschmidt.de>2018-10-11 07:15:08 +0200
commitfed4f73a61384189f591294e8ca0dc9ad50ddb89 (patch)
tree0228fa563106ba8450a6250f71c5007d0d26b671 /src/_pytest/tmpdir.py
parentd76fa59b35edfffa91ce24e19c9f17f75f510546 (diff)
downloadpytest-fed4f73a61384189f591294e8ca0dc9ad50ddb89.tar.gz
ignore rmtree errors
Diffstat (limited to 'src/_pytest/tmpdir.py')
-rw-r--r--src/_pytest/tmpdir.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/_pytest/tmpdir.py b/src/_pytest/tmpdir.py
index b9bd12afc..80856c0f1 100644
--- a/src/_pytest/tmpdir.py
+++ b/src/_pytest/tmpdir.py
@@ -119,7 +119,7 @@ def delete_a_numbered_dir(path):
garbage = parent.joinpath("garbage-{}".format(uuid.uuid4()))
path.rename(garbage)
- shutil.rmtree(str(garbage))
+ shutil.rmtree(str(garbage), ignore_errors=True)
def ensure_deletable(path, consider_lock_dead_if_created_before):