Skip to content

Commit 4a88e10

Browse files
committed
Skip tests that OOM on WASM
1 parent aba0fe0 commit 4a88e10

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

lib/matplotlib/tests/test_agg.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import io
2+
import sys
23

34
import numpy as np
45
from numpy.testing import assert_array_almost_equal
@@ -297,6 +298,7 @@ def test_draw_path_collection_error_handling():
297298
fig.canvas.draw()
298299

299300

301+
@pytest.mark.skipif(sys.platform == 'emscripten', reason='Too large for emscripten VM')
300302
def test_chunksize_fails():
301303
# NOTE: This test covers multiple independent test scenarios in a single
302304
# function, because each scenario uses ~2GB of memory and we don't

lib/matplotlib/tests/test_image.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1556,6 +1556,7 @@ def test_rc_interpolation_stage():
15561556
mpl.rcParams["image.interpolation_stage"] = val
15571557

15581558

1559+
@pytest.mark.skipif(sys.platform == 'emscripten', reason='Figure too large for WASM')
15591560
# We check for the warning with a draw() in the test, but we also need to
15601561
# filter the warning as it is emitted by the figure test decorator
15611562
@pytest.mark.filterwarnings(r'ignore:Data with more than .* '

0 commit comments

Comments
 (0)