Skip to content

Commit

Permalink
ignore rmtree errors
Browse files Browse the repository at this point in the history
  • Loading branch information
RonnyPfannschmidt committed Sep 28, 2018
1 parent e2451df commit e7a2b10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/_pytest/tmpdir.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit e7a2b10

Please sign in to comment.