Skip to content

Commit 1bd1714

Browse files
committed
update zipstore repr
1 parent a92cd4a commit 1bd1714

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/zarr/storage/zip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def with_mode(self, mode: ZipStoreAccessModeLiteral) -> Self: # type: ignore[ov
133133

134134
def __str__(self) -> str:
135135
# lets try https://github.com/zarr-developers/zeps/pull/48/files
136-
return f"file://{self.file_path}|zip://{self.path}"
136+
return f"file:///{self.file_path}|zip://{self.path}"
137137

138138
def __repr__(self) -> str:
139139
return f"ZipStore({str(self)!r})"

tests/test_store/test_zip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ async def test_not_writable_store_raises(self, store_kwargs: dict[str, Any]) ->
5454
await store.set("foo", cpu.Buffer.from_bytes(b"bar"))
5555

5656
def test_store_repr(self, store: ZipStore) -> None:
57-
assert str(store) == f"file://{store.file_path!s}|zip://{store.path}"
57+
assert str(store) == f"file:///{store.file_path!s}|zip://{store.path}"
5858

5959
def test_store_supports_writes(self, store: ZipStore) -> None:
6060
assert store.supports_writes

0 commit comments

Comments
 (0)