Skip to content

Commit 8912e43

Browse files
committed
fix tests?
1 parent f84284e commit 8912e43

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

src/zarr/testing/store.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -279,16 +279,6 @@ async def test_set_many(self, store: S) -> None:
279279
for k, v in store_dict.items():
280280
assert (await self.get(store, k)).to_bytes() == v.to_bytes()
281281

282-
async def test_set_invalid_buffer(self, store: S) -> None:
283-
"""
284-
Ensure that set raises a Type or Value Error for invalid buffer arguments.
285-
"""
286-
with pytest.raises(
287-
(ValueError, TypeError),
288-
match=r"\S+\.set\(\): `value` must be a Buffer instance. Got an instance of <class 'int'> instead.",
289-
):
290-
await store.set("c/0", 0) # type: ignore[arg-type]
291-
292282
@pytest.mark.parametrize(
293283
"key_ranges",
294284
[

tests/test_store/test_object.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ async def set(self, store: ObjectStore, key: str, value: Buffer) -> None:
4242
def test_store_repr(self, store: ObjectStore) -> None:
4343
from fnmatch import fnmatch
4444

45-
pattern = "ObjectStore(object://LocalStore(*))"
45+
pattern = "ObjectStore(object_store://LocalStore(*))"
4646
assert fnmatch(f"{store!r}", pattern)
4747

4848
def test_store_supports_writes(self, store: ObjectStore) -> None:

0 commit comments

Comments
 (0)