Skip to content

Commit

Permalink
ignore cleanup errors
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronsteers committed Mar 19, 2024
1 parent 42d3ae6 commit 23d1eec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/integration_tests/test_source_test_fixture.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ def test_check_fail():

def test_file_write_and_cleanup() -> None:
"""Ensure files are written to the correct location and cleaned up afterwards."""
with tempfile.TemporaryDirectory() as temp_dir_1, tempfile.TemporaryDirectory() as temp_dir_2:
with tempfile.TemporaryDirectory(ignore_cleanup_errors=True) as temp_dir_1, \
tempfile.TemporaryDirectory(ignore_cleanup_errors=True) as temp_dir_2:
cache_w_cleanup = ab.new_local_cache(cache_dir=temp_dir_1, cleanup=True)
cache_wo_cleanup = ab.new_local_cache(cache_dir=temp_dir_2, cleanup=False)

Expand Down

0 comments on commit 23d1eec

Please sign in to comment.