Skip to content

Commit 49f9084

Browse files
committed
Tests spawning node via subprocess now skip on WASM because emscripten can't do that
1 parent cfc9406 commit 49f9084

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/ndarray/test_dsl_js.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ def _run_node_index(module, gshape, off, cshape, ncols=1):
183183
return json.loads(res.stdout)
184184

185185

186+
@pytest.mark.skipif(blosc2.IS_WASM, reason="emscripten cannot spawn the node subprocess")
186187
def test_index_ramp_matches_numpy():
187188
def ramp(a):
188189
return float(_i0) * _n1 + _i1 # noqa: F821
@@ -196,6 +197,7 @@ def ramp(a):
196197
np.testing.assert_array_equal(got, expected[8:16, :])
197198

198199

200+
@pytest.mark.skipif(blosc2.IS_WASM, reason="emscripten cannot spawn the node subprocess")
199201
def test_flat_idx_matches_numpy():
200202
def flat(a):
201203
return float(_flat_idx) * 2.0 # noqa: F821

0 commit comments

Comments
 (0)