|
8 | 8 |
|
9 | 9 | import matplotlib as mpl |
10 | 10 | import matplotlib.pyplot as plt |
11 | | -from matplotlib.testing import _has_tex_package, check_for_pgf |
| 11 | +from matplotlib.testing import _has_tex_package, _check_for_pgf |
12 | 12 | from matplotlib.testing.compare import compare_images, ImageComparisonFailure |
13 | 13 | from matplotlib.backends.backend_pgf import PdfPages, common_texification |
14 | 14 | from matplotlib.testing.decorators import (_image_directories, |
|
17 | 17 |
|
18 | 18 | baseline_dir, result_dir = _image_directories(lambda: 'dummy func') |
19 | 19 |
|
20 | | -needs_xelatex = pytest.mark.skipif(not check_for_pgf('xelatex'), |
| 20 | +needs_xelatex = pytest.mark.skipif(not _check_for_pgf('xelatex'), |
21 | 21 | reason='xelatex + pgf is required') |
22 | | -needs_pdflatex = pytest.mark.skipif(not check_for_pgf('pdflatex'), |
| 22 | +needs_pdflatex = pytest.mark.skipif(not _check_for_pgf('pdflatex'), |
23 | 23 | reason='pdflatex + pgf is required') |
24 | | -needs_lualatex = pytest.mark.skipif(not check_for_pgf('lualatex'), |
| 24 | +needs_lualatex = pytest.mark.skipif(not _check_for_pgf('lualatex'), |
25 | 25 | reason='lualatex + pgf is required') |
26 | 26 | needs_ghostscript = pytest.mark.skipif( |
27 | 27 | "eps" not in mpl.testing.compare.converter, |
@@ -311,7 +311,7 @@ def test_unknown_font(caplog): |
311 | 311 | @pytest.mark.parametrize("texsystem", ("pdflatex", "xelatex", "lualatex")) |
312 | 312 | @pytest.mark.backend("pgf") |
313 | 313 | def test_minus_signs_with_tex(fig_test, fig_ref, texsystem): |
314 | | - if not check_for_pgf(texsystem): |
| 314 | + if not _check_for_pgf(texsystem): |
315 | 315 | pytest.skip(texsystem + ' + pgf is required') |
316 | 316 | mpl.rcParams["pgf.texsystem"] = texsystem |
317 | 317 | fig_test.text(.5, .5, "$-1$") |
|
0 commit comments