Skip to content

Commit

Permalink
allow remove() in test fixture to fail
Browse files Browse the repository at this point in the history
  • Loading branch information
berquist committed Jun 10, 2024
1 parent d3cb617 commit ca180a4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@

def remove(name):
if name.exists():
shutil.rmtree(str(name))
try:
shutil.rmtree(str(name))
except OSError:
pass
assert not name.exists()


Expand Down

0 comments on commit ca180a4

Please sign in to comment.