Skip to content

Commit 5ec909a

Browse files
committed
test
1 parent d901734 commit 5ec909a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/v3/test_store/test_remote.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,3 +186,10 @@ def test_from_upath(self) -> None:
186186
path = UPath(f"s3://{test_bucket_name}", endpoint_url=endpoint_url, anon=False)
187187
result = RemoteStore.from_upath(path)
188188
assert result.fs.endpoint_url == endpoint_url
189+
190+
async def test_empty_nonexistent_path(self, store_kwargs) -> None:
191+
# regression test for https://github.com/zarr-developers/zarr-python/pull/2343
192+
store_kwargs["mode"] = "w-"
193+
store_kwargs["path"] += "/abc"
194+
store = await self.store_cls.open(**store_kwargs)
195+
assert await store.empty()

0 commit comments

Comments
 (0)