Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit da6c00b

Browse files
committed
Increase tolerance of png_suite test
1 parent fff1d66 commit da6c00b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/matplotlib/tests/test_png.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@
1212
from matplotlib import pyplot as plt
1313
import matplotlib.cm as cm
1414

15+
import sys
16+
on_win = (sys.platform == 'win32')
1517

16-
@image_comparison(baseline_images=['pngsuite'], extensions=['png'])
18+
@image_comparison(baseline_images=['pngsuite'], extensions=['png'],
19+
tol=0.01 if on_win else 0)
1720
def test_pngsuite():
1821
dirname = os.path.join(
1922
os.path.dirname(__file__),

0 commit comments

Comments
 (0)