Skip to content

Commit 859b1db

Browse files
authored
Merge pull request #653 from andrewfulton9/s3_fixture_bug_fix
2 parents 847e78a + a118f1d commit 859b1db

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

zarr/storage.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1113,9 +1113,7 @@ def rmdir(self, path=None):
11131113
raise ReadOnlyError()
11141114
store_path = self.dir_path(path)
11151115
if self.fs.isdir(store_path):
1116-
# sometimes doesn't delete on first try with S3
1117-
while self.fs.exists(store_path):
1118-
self.fs.rm(store_path, recursive=True)
1116+
self.fs.rm(store_path, recursive=True)
11191117

11201118
def getsize(self, path=None):
11211119
store_path = self.dir_path(path)

zarr/tests/test_storage.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1030,7 +1030,8 @@ def s3(request):
10301030
pass
10311031
timeout -= 0.1 # pragma: no cover
10321032
time.sleep(0.1) # pragma: no cover
1033-
s3so = dict(client_kwargs={'endpoint_url': endpoint_uri})
1033+
s3so = dict(client_kwargs={'endpoint_url': endpoint_uri},
1034+
use_listings_cache=False)
10341035
s3 = s3fs.S3FileSystem(anon=False, **s3so)
10351036
s3.mkdir("test")
10361037
request.cls.s3so = s3so

0 commit comments

Comments
 (0)