Skip to content

Commit 541a786

Browse files
authored
Merge pull request matplotlib#22442 from tacaswell/fix_gs_on_ci
CI: skip test to work around gs bug
2 parents 5b07441 + cbf77e7 commit 541a786

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Diff for: lib/matplotlib/tests/test_backend_ps.py

+7
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,13 @@ def test_savefig_to_stringio(format, use_log, rcParams, orientation):
7171

7272
assert not s_buf.closed
7373
assert not b_buf.closed
74+
if '\x80' in s_buf.getvalue():
75+
pytest.skip(
76+
"This appears to be the result of a bug in ghostscript or one "
77+
"of its dependencies that fails to ascii85 encode the "
78+
"compressed fonts which results in encoding the string as "
79+
"ascii failing just below."
80+
)
7481
s_val = s_buf.getvalue().encode('ascii')
7582
b_val = b_buf.getvalue()
7683

0 commit comments

Comments
 (0)