1
1
from __future__ import annotations
2
2
3
3
import pickle
4
+ import warnings
4
5
from typing import TYPE_CHECKING , Any , Literal , cast
5
6
6
7
import numpy as np
@@ -1091,8 +1092,8 @@ async def test_require_array(store: Store, zarr_format: ZarrFormat) -> None:
1091
1092
1092
1093
1093
1094
@pytest .mark .parametrize ("consolidate" , [True , False ])
1094
- def test_members_name (store : Store , consolidate : bool ):
1095
- group = Group .from_store (store = store )
1095
+ async def test_members_name (store : Store , consolidate : bool , zarr_format : ZarrFormat ):
1096
+ group = Group .from_store (store = store , zarr_format = zarr_format )
1096
1097
a = group .create_group (name = "a" )
1097
1098
a .create_array ("array" , shape = (1 ,))
1098
1099
b = a .create_group (name = "b" )
@@ -1108,6 +1109,12 @@ def test_members_name(store: Store, consolidate: bool):
1108
1109
expected = ["/a" , "/a/array" , "/a/b" , "/a/b/array" ]
1109
1110
assert paths == expected
1110
1111
1112
+ # regression test for https://github.com/zarr-developers/zarr-python/pull/2356
1113
+ g = zarr .open_group (store , use_consolidated = False )
1114
+ with warnings .catch_warnings ():
1115
+ warnings .simplefilter ("error" )
1116
+ assert list (g )
1117
+
1111
1118
1112
1119
async def test_open_mutable_mapping ():
1113
1120
group = await zarr .api .asynchronous .open_group (store = {}, mode = "w" )
0 commit comments