99import numcodecs
1010import numpy as np
1111import pytest
12- from numpy .ma .testutils import assert_array_equal
1312
1413import zarr .api .asynchronous
1514from zarr import Array , AsyncArray , Group
15+ from zarr .abc .store import Store
1616from zarr .codecs import (
1717 BytesCodec ,
1818 GzipCodec ,
@@ -1265,14 +1265,16 @@ async def test_scalar_array() -> None:
12651265 assert arr .shape == ()
12661266
12671267
1268- @pytest .mark .parametrize ("store" , ["memory" , "local " ], indirect = True )
1269- @pytest .mark .parametrize ("store2" , ["memory" , "local " ], indirect = True )
1268+ @pytest .mark .parametrize ("store" , ["local" , " memory" , "zip " ], indirect = [ "store" ] )
1269+ @pytest .mark .parametrize ("store2" , ["local" , " memory" , "zip " ], indirect = [ "store2" ] )
12701270@pytest .mark .parametrize ("src_chunks" , [(1 , 2 ), (5 , 5 ), (5 , 10 )])
12711271@pytest .mark .parametrize ("new_chunks" , [(1 , 2 ), (5 , 5 ), (5 , 10 )])
1272- async def test_creation_from_other_zarr (store , store2 , src_chunks , new_chunks ):
1272+ async def test_creation_from_other_zarr (
1273+ store : Store , store2 : Store , src_chunks : tuple [int , int ], new_chunks : tuple [int , int ]
1274+ ) -> None :
12731275 src_fill_value = 2
12741276 src_dtype = np .dtype ("uint8" )
1275- src_attributes = {}
1277+ src_attributes = None
12761278
12771279 src = zarr .create (
12781280 (10 , 10 ),
@@ -1297,7 +1299,7 @@ async def test_creation_from_other_zarr(store, store2, src_chunks, new_chunks):
12971299 attributes = new_attributes ,
12981300 )
12991301
1300- assert_array_equal (result2 [:], src [:])
1302+ np . testing . assert_array_equal (result2 [:], src [:])
13011303 assert result2 .fill_value == new_fill_value
13021304 assert result2 .dtype == new_dtype
13031305 assert result2 .attrs == new_attributes
0 commit comments