Skip to content

Commit b1ac198

Browse files
committed
More blissful ignorance (windows doesn't allow deleting while in cwd use).
1 parent 2612d2c commit b1ac198

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/test_pytest_cov.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,10 @@ def bad():
562562
path = tempfile.mkdtemp('test_borken_cwd')
563563
os.chdir(path)
564564
yield
565-
os.rmdir(path)
565+
try:
566+
os.rmdir(path)
567+
except OSError:
568+
pass
566569
567570
def test_foobar(bad):
568571
assert mod.foobar(1, 2) == 3

0 commit comments

Comments
 (0)