Skip to content

Commit 0a97842

Browse files
committed
Relax character restriction
1 parent 15788f5 commit 0a97842

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

tests/test_properties.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,9 @@
1616

1717
#### TODO: Provide this in zarr.strategies
1818
# Copied from Xarray
19-
# only use characters within the "Latin Extended-A" subset of unicode
20-
_readable_characters = st.characters(categories=["L", "N"], max_codepoint=0x017F)
21-
_readable_strings = st.text(_readable_characters, max_size=5)
22-
_attr_keys = st.text(_readable_characters, min_size=1)
19+
_attr_keys = st.text(st.characters(), min_size=1)
2320
_attr_values = st.recursive(
24-
st.none() | st.booleans() | _readable_strings,
21+
st.none() | st.booleans() | st.text(st.characters(), max_size=5),
2522
lambda children: st.lists(children) | st.dictionaries(_attr_keys, children),
2623
max_leaves=3,
2724
)

0 commit comments

Comments
 (0)