We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d901734 commit 5ec909aCopy full SHA for 5ec909a
tests/v3/test_store/test_remote.py
@@ -186,3 +186,10 @@ def test_from_upath(self) -> None:
186
path = UPath(f"s3://{test_bucket_name}", endpoint_url=endpoint_url, anon=False)
187
result = RemoteStore.from_upath(path)
188
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