Skip to content

Commit 7559a98

Browse files
committed
Fix tests
1 parent 335be1a commit 7559a98

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/test_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def test_v2_and_v3_exist_at_same_path(store: Store) -> None:
165165
zarr.create_array(store, shape=(10,), dtype="uint8", zarr_format=2)
166166
msg = f"Both zarr.json (Zarr format 3) and .zarray (Zarr format 2) metadata objects exist at {store}. Zarr v3 will be used."
167167
with pytest.warns(UserWarning, match=re.escape(msg)):
168-
zarr.open(store=store, mode="r")
168+
zarr.open(store=store)
169169

170170

171171
@pytest.mark.parametrize("store", ["memory"], indirect=True)

tests/test_array.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1473,7 +1473,7 @@ async def test_name(store: Store, zarr_format: ZarrFormat, path: str | None) ->
14731473
for parent_path in parents:
14741474
# this will raise if these groups were not created
14751475
_ = await zarr.api.asynchronous.open_group(
1476-
store=store, path=parent_path, mode="r", zarr_format=zarr_format
1476+
store=store, path=parent_path, zarr_format=zarr_format
14771477
)
14781478

14791479

@@ -1661,7 +1661,7 @@ def test_roundtrip_numcodecs() -> None:
16611661

16621662
BYTES_CODEC = {"name": "bytes", "configuration": {"endian": "little"}}
16631663
# Read in the array again and check compressor config
1664-
root = zarr.open_group(store, mode="r")
1664+
root = zarr.open_group(store)
16651665
metadata = root["test"].metadata.to_dict()
16661666
expected = (*filters, BYTES_CODEC, *compressors)
16671667
assert metadata["codecs"] == expected

0 commit comments

Comments
 (0)