8000 Backport PR #22442: CI: skip test to work around gs bug · matplotlib/matplotlib@0e744af · GitHub
[go: up one dir, main page]

Skip to content

Commit 0e744af

Browse files
tacaswellmeeseeksmachine
authored andcommitted
Backport PR #22442: CI: skip test to work around gs bug
1 parent 4fe8472 commit 0e744af

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/matplotlib/tests/test_backend_ps.py

Lines changed: 7 additions & 0 deletions
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
73< 7349 code>73
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)
0