Skip to content

Commit 8dc626d

Browse files
committed
test
1 parent f051b7f commit 8dc626d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_api.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,10 @@ def test_save_errors() -> None:
142142
with pytest.raises(ValueError):
143143
# no arrays provided
144144
save("data/group.zarr")
145+
with pytest.raises(TypeError):
146+
# mode is no valid argument and would get handled as an array
147+
a = np.arange(10)
148+
zarr.save('data/example.zarr', a, mode='w')
145149

146150

147151
def test_open_with_mode_r(tmp_path: pathlib.Path) -> None:

0 commit comments

Comments
 (0)