8000 TST: up tolerance for test_collection · matplotlib/matplotlib@5773dad · GitHub
[go: up one dir, main page]

Skip to content

Commit 5773dad

Browse files
committed
TST: up tolerance for test_collection
* [ ]: matplotlib.tests.test_patheffects.test_collection.test (RMS 0.006) (x64,35) * [ ]: matplotlib.tests.test_patheffects.test_collection.test (RMS 0.008) (x86,27) * [ ]: matplotlib.tests.test_patheffects.test_collection.test (RMS 0.012) (x64,27) * [ ]: matplotlib.tests.test_patheffects.test_collection.test (RMS 0.012) (x64,34) This has a black diff, so up the tolerance on windows to 0.013
1 parent 1f843d4 commit 5773dad

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/matplotlib/tests/test_patheffects.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
import mock
1818
from nose.tools import assert_equal
1919

20+
import sys
21+
on_win = (sys.platform == 'win32')
22+
2023

2124
@image_comparison(baseline_images=['patheffect1'], remove_text=True)
2225
def test_patheffect1():
@@ -110,7 +113,7 @@ def test_SimplePatchShadow_offset():
110113
assert_equal(pe._offset, (4, 5))
111114

112115

113-
@image_comparison(baseline_images=['collection'])
116+
@image_comparison(baseline_images=['collection'], tol=0.013 if on_win else 0)
114117
def test_collection():
115118
x, y = np.meshgrid(np.linspace(0, 10, 150), np.linspace(-5, 5, 100))
116119
data = np.sin(x) + np.cos(y)

0 commit comments

Comments
 (0)
0