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

Skip to content

Commit d9bd62b

Browse files
committed
Merge pull request #5184 from cgohlke/patch-14
TST: fix test_mlab.test_griddata_nn failures on Windows
2 parents c01ed60 + e40203d commit d9bd62b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/tests/test_mlab.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2768,7 +2768,7 @@ def get_z(x, y):
27682768
[-0.1000099, 0.4999943, 1.0999964, 1.6999979],
27692769
[-0.3000128, 0.2999894, 0.8999913, 1.4999933]]
27702770
zi = mlab.griddata(x, y, z, xi, yi, interp='nn')
2771-
np.testing.assert_array_almost_equal(zi, correct_zi)
2771+
np.testing.assert_array_almost_equal(zi, correct_zi, 5)
27722772

27732773
# Decreasing xi or yi should raise ValueError.
27742774
assert_raises(ValueError, mlab.griddata, x, y, z, xi[::-1], yi,
@@ -2779,7 +2779,7 @@ def get_z(x, y):
27792779
# Passing 2D xi and yi arrays to griddata.
27802780
xi, yi = np.meshgrid(xi, yi)
27812781
zi = mlab.griddata(x, y, z, xi, yi, interp='nn')
2782-
np.testing.assert_array_almost_equal(zi, correct_zi)
2782+
np.testing.assert_array_almost_equal(zi, correct_zi, 5)
27832783

27842784
# Masking z array.
27852785
z_masked = np.ma.array(z, mask=[False, False, False, True, False])

0 commit comments

Comments
 (0)