Skip to content

Commit bdbeb32

Browse files
committed
Skip tests that expect LinAlgError on WASM
1 parent 616c0bf commit bdbeb32

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/matplotlib/tests/test_mlab.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -884,6 +884,8 @@ def test_single_dataset_element(self):
884884
with pytest.raises(ValueError):
885885
mlab.GaussianKDE([42])
886886

887+
@pytest.mark.skipif(sys.platform == 'emscripten',
888+
reason="WASM doesn't support floating-point exceptions")
887889
def test_silverman_multidim_dataset(self):
888890
"""Test silverman's for a multi-dimensional array."""
889891
x1 = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]])
@@ -897,6 +899,8 @@ def test_silverman_singledim_dataset(self):
897899
y_expected = 0.76770389927475502
898900
assert_almost_equal(mygauss.covariance_factor(), y_expected, 7)
899901

902+
@pytest.mark.skipif(sys.platform == 'emscripten',
903+
reason="WASM doesn't support floating-point exceptions")
900904
def test_scott_multidim_dataset(self):
901905
"""Test scott's output for a multi-dimensional array."""
902906
x1 = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]])

0 commit comments

Comments
 (0)