From 5134427c8e59f98fef6f8718641ab0c44cca10a4 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Thu, 30 Mar 2023 00:09:35 -0400 Subject: [PATCH] Skip pgf pdflatex text if cm-super is not installed Fixes #7160 --- lib/matplotlib/tests/test_backend_pgf.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/matplotlib/tests/test_backend_pgf.py b/lib/matplotlib/tests/test_backend_pgf.py index 5b2f1a5c43fa..0f4683331ef3 100644 --- a/lib/matplotlib/tests/test_backend_pgf.py +++ b/lib/matplotlib/tests/test_backend_pgf.py @@ -92,15 +92,12 @@ def test_xelatex(): # test compiling a figure to pdf with pdflatex @needs_pgf_pdflatex +@pytest.mark.skipif(not _has_tex_package('type1ec'), reason='needs type1ec.sty') @pytest.mark.skipif(not _has_tex_package('ucs'), reason='needs ucs.sty') @pytest.mark.backend('pgf') @image_comparison(['pgf_pdflatex.pdf'], style='default', tol=11.71 if _old_gs_version else 0) def test_pdflatex(): - if os.environ.get('APPVEYOR'): - pytest.xfail("pdflatex test does not work on appveyor due to missing " - "LaTeX fonts") - rc_pdflatex = {'font.family': 'serif', 'pgf.rcfonts': False, 'pgf.texsystem': 'pdflatex',