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

Skip to content

Commit d51638e

Browse files
authored
Merge pull request #18955 from reshamas/fix-test-png
added needs_ghostscript; skip test
2 parents 02746fa + 51cf9c6 commit d51638e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/matplotlib/tests/test_backend_pgf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ def check_for(texsystem):
4444
reason='pdflatex + pgf is required')
4545
needs_lualatex = pytest.mark.skipif(not check_for('lualatex'),
4646
reason='lualatex + pgf is required')
47+
needs_ghostscript = pytest.mark.skipif(
48+
"eps" not in mpl.testing.compare.converter,
49+
reason="This test needs a ghostscript installation")
4750

4851

4952
def _has_tex_package(package):
@@ -315,6 +318,7 @@ def test_bbox_inches_tight(tmpdir):
315318

316319

317320
@needs_xelatex
321+
@needs_ghostscript
318322
def test_png():
319323
# Just a smoketest.
320324
fig, ax = plt.subplots()

0 commit comments

Comments
 (0)