We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f051b7f commit 8dc626dCopy full SHA for 8dc626d
tests/test_api.py
@@ -142,6 +142,10 @@ def test_save_errors() -> None:
142
with pytest.raises(ValueError):
143
# no arrays provided
144
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')
149
150
151
def test_open_with_mode_r(tmp_path: pathlib.Path) -> None:
0 commit comments