11from __future__ import annotations
22
33import pickle
4+ import warnings
45from typing import TYPE_CHECKING , Any , Literal , cast
56
67import numpy as np
@@ -1091,8 +1092,8 @@ async def test_require_array(store: Store, zarr_format: ZarrFormat) -> None:
10911092
10921093
10931094@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 )
10961097 a = group .create_group (name = "a" )
10971098 a .create_array ("array" , shape = (1 ,))
10981099 b = a .create_group (name = "b" )
@@ -1108,6 +1109,12 @@ def test_members_name(store: Store, consolidate: bool):
11081109 expected = ["/a" , "/a/array" , "/a/b" , "/a/b/array" ]
11091110 assert paths == expected
11101111
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+
11111118
11121119async def test_open_mutable_mapping ():
11131120 group = await zarr .api .asynchronous .open_group (store = {}, mode = "w" )
0 commit comments