Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 47d62e4

Browse files
committed
TST: only test png version
1 parent f25f1f7 commit 47d62e4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/matplotlib/tests/test_figure.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ def test_removed_axis():
503503

504504

505505
class TestCollage:
506-
@check_figures_equal()
506+
@check_figures_equal(extensions=['png'])
507507
@pytest.mark.parametrize('x', [
508508
[["A", "A", "B"], ["C", "D", "B"]],
509509
[[1, 1, 2], [3, 4, 2]]]
@@ -531,7 +531,7 @@ def test_basic(self, fig_test, fig_ref, x):
531531
axD = fig_ref.add_subplot(gs[1, 1])
532532
axD.set_title(labels[3])
533533

534-
@check_figures_equal(tol=0.005)
534+
@check_figures_equal(tol=0.005, extensions=['png'])
535535
def test_nested(self, fig_test, fig_ref):
536536
x = [["A", "B", "B"], ["C", "C", "D"]]
537537

@@ -564,7 +564,7 @@ def test_nested(self, fig_test, fig_ref):
564564
fig_test.tight_layout()
565565
fig_ref.tight_layout()
566566

567-
@check_figures_equal()
567+
@check_figures_equal(extensions=['png'])
568568
@pytest.mark.parametrize('x, empty_sentinel', [
569569
([["A", None], [None, "B"]], None),
570570
([["A", None], [None, "B"]], "SKIP"),
@@ -596,7 +596,7 @@ def test_empty(self, fig_test, fig_ref, x, empty_sentinel):
596596
axB = fig_ref.add_subplot(gs[1, 1])
597597
axB.set_title(labels[1])
598598

599-
@check_figures_equal()
599+
@check_figures_equal(extensions=['png'])
600600
def test_adjust_existing(self, fig_test, fig_ref):
601601
x = [["A", "B"], ["C", "B"]]
602602

0 commit comments

Comments
 (0)