8000 Skip tests that OOM on WASM · matplotlib/matplotlib@2f92b80 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2f92b80

Browse files
committed
Skip tests that OOM on WASM
1 parent 2e4450c commit 2f92b80

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
@@ -279,6 +280,7 @@ def test_draw_path_collection_error_handling():
279280
fig.canvas.draw()
280281

281282

283+
@pytest.mark.skipif(sys.platform == 'emscripten', reason='Too large for emscripten VM')
282284
def test_chunksize_fails():
283285
# NOTE: This test covers multiple independent test scenarios in a single
284286
# 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
@@ -1507,6 +1507,7 @@ def test_rc_interpolation_stage():
15071507
mpl.rcParams["image.interpolation_stage"] = val
15081508

15091509

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

0 commit comments

Comments
 (0)
0