Skip to content

Commit 428355a

Browse files
committed
Threading tests cannot pass in wasm32
1 parent 640a9e9 commit 428355a

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

tests/ndarray/test_lazyexpr.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,7 @@ def test_negate(dtype_fixture, shape_fixture):
494494
np.testing.assert_allclose(res_lazyexpr[:], res_np)
495495

496496

497+
@pytest.mark.skipif(blosc2.IS_WASM, reason="This test is not supported in WASM")
497498
def test_params(array_fixture):
498499
a1, a2, a3, a4, na1, na2, na3, na4 = array_fixture
499500
expr = a1 + a2 - a3 * a4
@@ -541,8 +542,12 @@ def test_save():
541542
urlpath_save = "expr.b2nd"
542543
expr.save(urlpath=urlpath_save)
543544

544-
cparams = {"nthreads": 2}
545-
dparams = {"nthreads": 4}
545+
if not blosc2.IS_WASM:
546+
cparams = {"nthreads": 2}
547+
dparams = {"nthreads": 4}
548+
else:
549+
cparams = {}
550+
dparams = {}
546551
chunks = tuple(i // 2 for i in nres.shape)
547552
blocks = tuple(i // 4 for i in nres.shape)
548553
urlpath_eval = "eval_expr.b2nd"

0 commit comments

Comments
 (0)