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

Skip to content

Commit f2912e5

Browse files
committed
Merge pull request matplotlib#3302 from jenshnielsen/checkdep_ghostscript
Check for GhostScript in this test which needs it
2 parents 5680965 + b6a4c26 commit f2912e5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/tests/test_backend_ps.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ def test_savefig_to_stringio():
5151

5252
@cleanup
5353
def test_savefig_to_stringio_with_distiller():
54+
if not matplotlib.checkdep_ghostscript():
55+
raise SkipTest("This test requires a GhostScript installation")
5456
matplotlib.rcParams['ps.usedistiller'] = 'ghostscript'
5557
_test_savefig_to_stringio()
5658

0 commit comments

Comments
 (0)