@@ -235,7 +235,7 @@ def test_open_with_mode_r(tmp_path: pathlib.Path) -> None:
235
235
z2 = zarr .open (store = tmp_path , mode = "r" )
236
236
assert isinstance (z2 , Array )
237
237
assert z2 .fill_value == 1
238
- assert (z2 [:] == 1 ).all ()
238
+ assert np . array (z2 [:] == 1 ).all ()
239
239
with pytest .raises (ValueError ):
240
240
z2 [:] = 3
241
241
@@ -247,7 +247,7 @@ def test_open_with_mode_r_plus(tmp_path: pathlib.Path) -> None:
247
247
zarr .ones (store = tmp_path , shape = (3 , 3 ))
248
248
z2 = zarr .open (store = tmp_path , mode = "r+" )
249
249
assert isinstance (z2 , Array )
250
- assert (z2 [:] == 1 ).all ()
250
+ assert np . array (z2 [:] == 1 ).all ()
251
251
z2 [:] = 3
252
252
253
253
@@ -263,7 +263,7 @@ async def test_open_with_mode_a(tmp_path: pathlib.Path) -> None:
263
263
arr [...] = 1
264
264
z2 = zarr .open (store = tmp_path , mode = "a" )
265
265
assert isinstance (z2 , Array )
266
- assert (z2 [:] == 1 ).all ()
266
+ assert np . array (z2 [:] == 1 ).all ()
267
267
z2 [:] = 3
268
268
269
269
@@ -1119,5 +1119,5 @@ def test_open_array_with_mode_r_plus(store: Store) -> None:
1119
1119
zarr .ones (store = store , shape = (3 , 3 ))
1120
1120
z2 = zarr .open_array (store = store , mode = "r+" )
1121
1121
assert isinstance (z2 , Array )
1122
- assert (z2 [:] == 1 ).all ()
1122
+ assert np . array (z2 [:] == 1 ).all ()
1123
1123
z2 [:] = 3
0 commit comments