@@ -827,20 +827,20 @@ def test_set_orthogonal_selection_1d(store: StorePath) -> None:
827
827
_test_set_orthogonal_selection (v , a , z , selection )
828
828
829
829
830
- def test_set_item_1d_last_two_chunks ():
830
+ def test_set_item_1d_last_two_chunks (store : StorePath ):
831
831
# regression test for GH2849
832
- g = zarr .open_group ("foo.zarr" , zarr_format = 3 , mode = "w" )
832
+ g = zarr .open_group (store = store , zarr_format = 3 , mode = "w" )
833
833
a = g .create_array ("bar" , shape = (10 ,), chunks = (3 ,), dtype = int )
834
834
data = np .array ([7 , 8 , 9 ])
835
835
a [slice (7 , 10 )] = data
836
836
np .testing .assert_array_equal (a [slice (7 , 10 )], data )
837
837
838
- z = zarr .open_group ("foo.zarr" , mode = "w" )
838
+ z = zarr .open_group (store = store , mode = "w" )
839
839
z .create_array ("zoo" , dtype = float , shape = ())
840
840
z ["zoo" ][...] = np .array (1 ) # why doesn't [:] work?
841
841
np .testing .assert_equal (z ["zoo" ][()], np .array (1 ))
842
842
843
- z = zarr .open_group ("foo.zarr" , mode = "w" )
843
+ z = zarr .open_group (store = store , mode = "w" )
844
844
z .create_array ("zoo" , dtype = float , shape = ())
845
845
z ["zoo" ][...] = 1 # why doesn't [:] work?
846
846
np .testing .assert_equal (z ["zoo" ][()], np .array (1 ))
0 commit comments