File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed
Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -443,23 +443,6 @@ def test_orthogonal_indexing_fallback_on_getitem_2d(
443443 np .testing .assert_array_equal (z [index ], expected_result )
444444
445445
446- @pytest .mark .skip (reason = "fails on ubuntu, windows; numpy=2.2; in CI" )
447- def test_setitem_zarr_array_as_value () -> None :
448- # Regression test for https://github.com/zarr-developers/zarr-python/issues/3611
449- # Assigning a zarr Array as the value used to raise
450- # SyncError("Calling sync() from within a running loop") because the codec
451- # pipeline tried to index the zarr array inside an already-running async loop.
452- src = zarr .array (np .arange (10 ), chunks = (5 ,))
453- dst = zarr .zeros (10 , chunks = (5 ,), dtype = src .dtype )
454-
455- # Full assignment
456- dst [:] = src
457- assert_array_equal (dst [:], np .arange (10 ))
458-
459- # Slice assignment
460- dst2 = zarr .zeros (10 , chunks = (5 ,), dtype = src .dtype )
461- dst2 [2 :7 ] = src [2 :7 ]
462- assert_array_equal (dst2 [2 :7 ], np .arange (2 , 7 ))
463446
464447
465448def test_setitem_repeated_index ():
You can’t perform that action at this time.
0 commit comments