Skip to content

Commit a92cd4a

Browse files
committed
update localstore repr
1 parent fc4a780 commit a92cd4a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/zarr/storage/local.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def with_mode(self, mode: AccessModeLiteral) -> Self:
141141
return type(self)(path=self.path, mode=mode)
142142

143143
def __str__(self) -> str:
144-
return f"file://{self.path}"
144+
return f"file:///{self.path}"
145145

146146
def __repr__(self) -> str:
147147
return f"LocalStore({str(self)!r})"

tests/test_store/test_local.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def store_kwargs(self, tmpdir) -> dict[str, str]:
3333
return {"path": str(tmpdir), "mode": "r+"}
3434

3535
def test_store_repr(self, store: LocalStore) -> None:
36-
assert str(store) == f"file://{store.path!s}"
36+
assert str(store) == f"file:///{store.path}"
3737

3838
def test_store_supports_writes(self, store: LocalStore) -> None:
3939
assert store.supports_writes

0 commit comments

Comments
 (0)