Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b11ea41

Browse filesBrowse files
committed
TST: Increase tolerance for older Ghostscript
1 parent 19355c6 commit b11ea41
Copy full SHA for b11ea41

File tree

Expand file treeCollapse file tree

1 file changed

+8
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+8
-1
lines changed

‎lib/matplotlib/tests/test_usetex.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_usetex.py
+8-1Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from tempfile import TemporaryFile
22

33
import numpy as np
4+
from packaging.version import parse as parse_version
45
import pytest
56

67
import matplotlib as mpl
@@ -155,8 +156,14 @@ def test_missing_psfont(fmt, monkeypatch):
155156
fig.savefig(tmpfile, format=fmt)
156157

157158

159+
try:
160+
_old_gs_version = mpl._get_executable_info('gs').version < parse_version('9.55')
161+
except mpl.ExecutableNotFoundError:
162+
_old_gs_version = True
163+
164+
158165
@image_comparison(baseline_images=['rotation'], extensions=['eps', 'pdf', 'png', 'svg'],
159-
style='mpl20')
166+
style='mpl20', tol=3.91 if _old_gs_version else 0)
160167
def test_rotation():
161168
mpl.rcParams['text.usetex'] = True
162169

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.