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 c070940 commit 272d05aCopy full SHA for 272d05a
tests/test_api.py
@@ -1086,6 +1086,13 @@ async def test_open_falls_back_to_open_group_async() -> None:
1086
assert group.attrs == {"key": "value"}
1087
1088
1089
+def test_open_mode_write_creates_group(tmp_path: pathlib.Path) -> None:
1090
+ # https://github.com/zarr-developers/zarr-python/issues/2490
1091
+ zarr_dir = tmp_path / "test.zarr"
1092
+ group = zarr.open(zarr_dir, mode="w")
1093
+ assert isinstance(group, Group)
1094
+
1095
1096
async def test_metadata_validation_error() -> None:
1097
with pytest.raises(
1098
MetadataValidationError,
0 commit comments