Skip to content

Commit cbf77e7

Browse files
committed
CI: skip test to work around gs bug
We are seeing failures due to, what we believe, is an issue with ghostscript or one of its dependencies failing to properly encode the compressed fonts in an ascii compatible way. This appears to be a transient issue has been fixed by subsequent release, however we have not been able to identify exactly which dependency is problematic. For now skip the tests and remove this at some point in the future.
1 parent 5b07441 commit cbf77e7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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)