Skip to content

Commit 7ff6ded

Browse files
author
Philipp Arras
committed
Skip test if LaTeX is not available
1 parent cd93057 commit 7ff6ded

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/tests/test_backend_pgf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,8 @@ def test_unknown_font(caplog):
346346
@pytest.mark.parametrize("texsystem", ("pdflatex", "xelatex", "lualatex"))
347347
@pytest.mark.backend("pgf")
348348
def test_minus_signs_with_tex(fig_test, fig_ref, texsystem):
349+
if not check_for(texsystem):
350+
pytest.skip(texsystem + ' + pgf is required')
349351
mpl.rcParams["pgf.texsystem"] = texsystem
350352
fig_test.text(.5, .5, "$-1$")
351353
fig_ref.text(.5, .5, "$\N{MINUS SIGN}1$")

0 commit comments

Comments
 (0)