Skip to content

Commit

Permalink
Fix cleanup of object-store directories (#1570)
Browse files Browse the repository at this point in the history
  • Loading branch information
hendrikmakait authored Oct 24, 2024
1 parent 35c6058 commit 5758097
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,10 @@ def s3_url(s3, s3_scratch, test_name_uuid):
try:
yield url
finally:
s3.rm(url, recursive=True)
try:
s3.rm(url, recursive=True)
except FileNotFoundError:
pass


GCS_REGION = "us-central1"
Expand Down Expand Up @@ -698,7 +701,10 @@ def gcs_url(gcs, gcs_scratch, test_name_uuid):
try:
yield url
finally:
gcs.rm(url, recursive=True)
try:
gcs.rm(url, recursive=True)
except FileNotFoundError:
pass


@pytest.fixture(scope="session")
Expand All @@ -724,7 +730,10 @@ def az_url(az, az_scratch, test_name_uuid):
try:
yield url
finally:
az.rm(url, recursive=True)
try:
az.rm(url, recursive=True)
except FileNotFoundError:
pass


# this code was taken from pytest docs
Expand Down

0 comments on commit 5758097

Please sign in to comment.