Skip to content

Commit 2217455

Browse files
Mark more indexing tests as slow in WASM
1 parent bad9920 commit 2217455

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

tests/test_indexing.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -739,6 +739,7 @@ def _test_get_orthogonal_selection_3d(
739739
_test_get_orthogonal_selection(a, z, selection)
740740

741741

742+
@pytest.mark.slow_wasm
742743
def test_get_orthogonal_selection_3d(store: StorePath) -> None:
743744
# setup
744745
a = np.arange(100000, dtype=int).reshape(200, 50, 10)
@@ -801,6 +802,7 @@ def _test_set_orthogonal_selection(
801802
assert_array_equal(a, z[:])
802803

803804

805+
@pytest.mark.slow_wasm
804806
def test_set_orthogonal_selection_1d(store: StorePath) -> None:
805807
# setup
806808
v = np.arange(1050, dtype=int)
@@ -846,6 +848,7 @@ def test_set_item_1d_last_two_chunks(store: StorePath):
846848
np.testing.assert_equal(z["zoo"][()], np.array(1))
847849

848850

851+
@pytest.mark.slow_wasm
849852
def _test_set_orthogonal_selection_2d(
850853
v: npt.NDArray[np.int_],
851854
a: npt.NDArray[np.int_],
@@ -1150,6 +1153,7 @@ def test_set_coordinate_selection_1d(store: StorePath) -> None:
11501153
z.vindex[selection] = 42 # type:ignore[index]
11511154

11521155

1156+
@pytest.mark.slow_wasm
11531157
def test_set_coordinate_selection_2d(store: StorePath) -> None:
11541158
# setup
11551159
v = np.arange(10000, dtype=int).reshape(1000, 10)
@@ -1333,6 +1337,7 @@ def _test_set_block_selection(
13331337
assert_array_equal(a, z[:])
13341338

13351339

1340+
@pytest.mark.slow_wasm
13361341
def test_set_block_selection_1d(store: StorePath) -> None:
13371342
# setup
13381343
v = np.arange(1050, dtype=int)
@@ -1351,6 +1356,7 @@ def test_set_block_selection_1d(store: StorePath) -> None:
13511356
z.blocks[selection_bad] = 42 # type:ignore[index]
13521357

13531358

1359+
@pytest.mark.slow_wasm
13541360
def test_set_block_selection_2d(store: StorePath) -> None:
13551361
# setup
13561362
v = np.arange(10000, dtype=int).reshape(1000, 10)

tests/test_properties.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,15 @@ def deep_equal(a: Any, b: Any) -> bool:
7777
return a == b
7878

7979

80-
@pytest.mark.xfail(IS_WASM, reason="Hypothesis deadline being exceeded in Pyodide/WASM")
80+
@pytest.mark.slow_wasm
8181
@given(data=st.data(), zarr_format=zarr_formats)
8282
def test_array_roundtrip(data: st.DataObject, zarr_format: int) -> None:
8383
nparray = data.draw(numpy_arrays(zarr_formats=st.just(zarr_format)))
8484
zarray = data.draw(arrays(arrays=st.just(nparray), zarr_formats=st.just(zarr_format)))
8585
assert_array_equal(nparray, zarray[:])
8686

8787

88+
@pytest.mark.slow_wasm
8889
@given(array=arrays())
8990
def test_array_creates_implicit_groups(array):
9091
path = array.path
@@ -166,6 +167,7 @@ def test_vindex(data: st.DataObject) -> None:
166167
# assert_array_equal(nparray, zarray[:])
167168

168169

170+
@pytest.mark.slow_wasm
169171
@given(store=stores, meta=array_metadata()) # type: ignore[misc]
170172
async def test_roundtrip_array_metadata_from_store(
171173
store: Store, meta: ArrayV2Metadata | ArrayV3Metadata

0 commit comments

Comments
 (0)