Skip to content

Commit

Permalink
More blissful ignorance (windows doesn't allow deleting while in cwd …
Browse files Browse the repository at this point in the history
…use).
  • Loading branch information
ionelmc committed May 22, 2020
1 parent 2612d2c commit b1ac198
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_pytest_cov.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,10 @@ def bad():
path = tempfile.mkdtemp('test_borken_cwd')
os.chdir(path)
yield
os.rmdir(path)
try:
os.rmdir(path)
except OSError:
pass
def test_foobar(bad):
assert mod.foobar(1, 2) == 3
Expand Down

0 comments on commit b1ac198

Please sign in to comment.