Skip to content

Commit

Permalink
fixture teardown should not fail test
Browse files Browse the repository at this point in the history
  • Loading branch information
h-vetinari committed Sep 17, 2023
1 parent c04c157 commit f0b2133
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions python/pyarrow/tests/test_fs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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=[
Expand Down

0 comments on commit f0b2133

Please sign in to comment.