Skip to content

Commit da641b3

Browse files
QuLogicmeeseeksmachine
authored andcommitted
Backport PR matplotlib#30624: TST: Increase tolerances for Ghostscript 10.06
1 parent ba59282 commit da641b3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/matplotlib/tests/test_bbox_tight.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def test_bbox_inches_tight_clipping():
108108
plt.gcf().artists.append(patch)
109109

110110

111-
@image_comparison(['bbox_inches_tight_raster'],
111+
@image_comparison(['bbox_inches_tight_raster'], tol=0.15, # For Ghostscript 10.06+.
112112
remove_text=True, savefig_kwarg={'bbox_inches': 'tight'})
113113
def test_bbox_inches_tight_raster():
114114
"""Test rasterization with tight_layout"""

lib/matplotlib/tests/test_image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def test_alpha_interp():
3737
axr.imshow(img, interpolation="bilinear")
3838

3939

40-
@image_comparison(['interp_nearest_vs_none'],
40+
@image_comparison(['interp_nearest_vs_none'], tol=3.7, # For Ghostscript 10.06+.
4141
extensions=['pdf', 'svg'], remove_text=True)
4242
def test_interp_nearest_vs_none():
4343
"""Test the effect of "nearest" and "none" interpolation"""

0 commit comments

Comments
 (0)