Skip to content

Commit afdb99f

Browse files
authored
Merge branch 'main' into feat/group-metadata-module
2 parents 1fc79b8 + 0351c4e commit afdb99f

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/zarr/testing/strategies.py

+8-4
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,15 @@ def clear_store(x: Store) -> Store:
9696
zarr_key_chars = st.sampled_from(
9797
".-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz"
9898
)
99-
node_names = st.text(zarr_key_chars, min_size=1).filter(
100-
lambda t: t not in (".", "..") and not t.startswith("__")
99+
node_names = (
100+
st.text(zarr_key_chars, min_size=1)
101+
.filter(lambda t: t not in (".", "..") and not t.startswith("__"))
102+
.filter(lambda name: name.lower() != "zarr.json")
101103
)
102-
short_node_names = st.text(zarr_key_chars, max_size=3, min_size=1).filter(
103-
lambda t: t not in (".", "..") and not t.startswith("__")
104+
short_node_names = (
105+
st.text(zarr_key_chars, max_size=3, min_size=1)
106+
.filter(lambda t: t not in (".", "..") and not t.startswith("__"))
107+
.filter(lambda name: name.lower() != "zarr.json")
104108
)
105109
array_names = node_names
106110
attrs = st.none() | st.dictionaries(_attr_keys, _attr_values)

0 commit comments

Comments
 (0)