Skip to content

Commit 3b64a34

Browse files
Experiment if we can remove the slow_wasm option now
1 parent 716dbcb commit 3b64a34

4 files changed

Lines changed: 0 additions & 23 deletions

File tree

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,6 @@ markers = [
454454
"asyncio: mark test as asyncio test",
455455
"gpu: mark a test as requiring CuPy and GPU",
456456
"slow_hypothesis: slow hypothesis tests",
457-
"slow_wasm: slow tests in Pyodide/WASM",
458457
]
459458

460459
[tool.repo-review]

tests/conftest.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -283,30 +283,17 @@ def pytest_addoption(parser: Any) -> None:
283283
default=False,
284284
help="run slow hypothesis tests",
285285
)
286-
parser.addoption(
287-
"--run-slow-wasm",
288-
action="store_true",
289-
default=False,
290-
help="run slow tests only applicable to WASM",
291-
)
292286

293287

294288
def pytest_collection_modifyitems(config: Any, items: Any) -> None:
295289
if config.getoption("--run-slow-hypothesis"):
296290
return
297-
if config.getoption("--run-slow-wasm") and IS_WASM:
298-
return
299291

300292
skip_slow_hyp = pytest.mark.skip(reason="need --run-slow-hypothesis option to run")
301-
skip_slow_wasm = pytest.mark.skip(
302-
reason="need --run-slow-wasm option to run in WASM, or not running in WASM"
303-
)
304293

305294
for item in items:
306295
if "slow_hypothesis" in item.keywords:
307296
item.add_marker(skip_slow_hyp)
308-
if "slow_wasm" in item.keywords and IS_WASM:
309-
item.add_marker(skip_slow_wasm)
310297

311298

312299
settings.register_profile(

tests/test_indexing.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,6 @@ def _test_get_orthogonal_selection_3d(
767767
_test_get_orthogonal_selection(a, z, selection)
768768

769769

770-
@pytest.mark.slow_wasm
771770
def test_get_orthogonal_selection_3d(store: StorePath) -> None:
772771
# setup
773772
a = np.arange(32400, dtype=int).reshape(120, 30, 9)
@@ -825,7 +824,6 @@ def _test_set_orthogonal_selection(
825824
assert_array_equal(a, z[:])
826825

827826

828-
@pytest.mark.slow_wasm
829827
def test_set_orthogonal_selection_1d(store: StorePath) -> None:
830828
# setup
831829
v = np.arange(550, dtype=int)
@@ -868,7 +866,6 @@ def test_set_item_1d_last_two_chunks(store: StorePath):
868866
np.testing.assert_equal(z["zoo"][()], np.array(1))
869867

870868

871-
@pytest.mark.slow_wasm
872869
def _test_set_orthogonal_selection_2d(
873870
v: npt.NDArray[np.int_],
874871
a: npt.NDArray[np.int_],
@@ -889,7 +886,6 @@ def _test_set_orthogonal_selection_2d(
889886
_test_set_orthogonal_selection(v, a, z, selection)
890887

891888

892-
@pytest.mark.slow_wasm
893889
def test_set_orthogonal_selection_2d(store: StorePath) -> None:
894890
# setup
895891
v = np.arange(5400, dtype=int).reshape(600, 9)
@@ -948,7 +944,6 @@ def _test_set_orthogonal_selection_3d(
948944
_test_set_orthogonal_selection(v, a, z, selection)
949945

950946

951-
@pytest.mark.slow_wasm
952947
def test_set_orthogonal_selection_3d(store: StorePath) -> None:
953948
# setup
954949
v = np.arange(32400, dtype=int).reshape(120, 30, 9)
@@ -1160,7 +1155,6 @@ def test_set_coordinate_selection_1d(store: StorePath) -> None:
11601155
z.vindex[selection] = 42 # type:ignore[index]
11611156

11621157

1163-
@pytest.mark.slow_wasm
11641158
def test_set_coordinate_selection_2d(store: StorePath) -> None:
11651159
# setup
11661160
v = np.arange(5400, dtype=int).reshape(600, 9)
@@ -1344,7 +1338,6 @@ def _test_set_block_selection(
13441338
assert_array_equal(a, z[:])
13451339

13461340

1347-
@pytest.mark.slow_wasm
13481341
def test_set_block_selection_1d(store: StorePath) -> None:
13491342
# setup
13501343
v = np.arange(1050, dtype=int)
@@ -1363,7 +1356,6 @@ def test_set_block_selection_1d(store: StorePath) -> None:
13631356
z.blocks[selection_bad] = 42 # type:ignore[index]
13641357

13651358

1366-
@pytest.mark.slow_wasm
13671359
def test_set_block_selection_2d(store: StorePath) -> None:
13681360
# setup
13691361
v = np.arange(10000, dtype=int).reshape(1000, 10)

tests/test_properties.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,6 @@ async def test_vindex(data: st.DataObject) -> None:
247247
# note: async vindex setitem not yet implemented
248248

249249

250-
@pytest.mark.slow_wasm
251250
@given(store=stores, meta=array_metadata()) # type: ignore[misc]
252251
@pytest.mark.filterwarnings("ignore::zarr.core.dtype.common.UnstableSpecificationWarning")
253252
async def test_roundtrip_array_metadata_from_store(

0 commit comments

Comments
 (0)