8000 Increase default tolerance slightly for 32-bit systems. · matplotlib/matplotlib@8291100 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8291100

Browse files
committed
Increase default tolerance slightly for 32-bit systems.
Around 900 tests fail on 32-bit systems, but with rather small RMS.
1 parent d2f25c9 commit 8291100

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/testing/decorators.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,8 @@ def image_comparison(baseline_images, extensions=None, tol=0,
378378
extensions = ['png', 'pdf', 'svg']
379379
if savefig_kwarg is None:
380380
savefig_kwarg = dict() # default no kwargs to savefig
381+
if sys.maxsize <= 2**32:
382+
tol += 0.06
381383
return _pytest_image_comparison(
382384
baseline_images=baseline_images, extensions=extensions, tol=tol,
383385
freetype_version=freetype_version, remove_text=remove_text,

0 commit comments

Comments
 (0)
0