Skip to content

Commit 2c759ab

Browse files
committed
fix: some windows versions don't make this directory?
1 parent 59c3143 commit 2c759ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_venv.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,8 @@ def test_third_party_venv_isnt_measured(
213213
try:
214214
run_in_venv("python -m pip install .")
215215
finally:
216-
shutil.rmtree("build")
217-
shutil.rmtree("myproduct.egg-info")
216+
shutil.rmtree("build", ignore_errors=True)
217+
shutil.rmtree("myproduct.egg-info", ignore_errors=True)
218218
# Ensure that coverage doesn't run the non-installed module.
219219
os.remove('myproduct.py')
220220
out = run_in_venv(coverage_command + " run --source=.,myproduct -m myproduct")

0 commit comments

Comments
 (0)