From f0b2133083f4afa7e9c476db88f609843e304296 Mon Sep 17 00:00:00 2001 From: "H. Vetinari" Date: Wed, 13 Sep 2023 21:34:29 +1100 Subject: [PATCH] fixture teardown should not fail test --- python/pyarrow/tests/test_fs.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/python/pyarrow/tests/test_fs.py b/python/pyarrow/tests/test_fs.py index 8135f70f6905c..7aae2754a74f6 100644 --- a/python/pyarrow/tests/test_fs.py +++ b/python/pyarrow/tests/test_fs.py @@ -255,7 +255,10 @@ def s3fs(request, s3_server): allow_move_dir=False, allow_append_to_file=False, ) - fs.delete_dir(bucket) + try: + fs.delete_dir(bucket) + except OSError: + pass @pytest.fixture @@ -357,7 +360,10 @@ def py_fsspec_s3fs(request, s3_server): allow_move_dir=False, allow_append_to_file=True, ) - fs.delete_dir(bucket) + try: + fs.delete_dir(bucket) + except OSError: + pass @pytest.fixture(params=[