From 23d1eec912fcc13c94c3f4feb968bb89c63be818 Mon Sep 17 00:00:00 2001 From: Aaron Steers Date: Mon, 18 Mar 2024 20:56:41 -0700 Subject: [PATCH] ignore cleanup errors --- tests/integration_tests/test_source_test_fixture.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/integration_tests/test_source_test_fixture.py b/tests/integration_tests/test_source_test_fixture.py index 4f8921a2..d9cf9dea 100644 --- a/tests/integration_tests/test_source_test_fixture.py +++ b/tests/integration_tests/test_source_test_fixture.py @@ -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)