10000 Loosen up test_Normalize test · matplotlib/matplotlib@e3424d0 · GitHub
[go: up one dir, main page]

Skip to content

Commit e3424d0

Browse files
committed
Loosen up test_Normalize test
Fixes #23707
1 parent 5773bf9 commit e3424d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/tests/test_colors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ def test_Normalize():
567567
norm = plt.Normalize(1, 1 + 100 * eps)
568568
# This returns exactly 0.5 when longdouble is extended precision (80-bit),
569569
# but only a value close to it when it is quadruple precision (128-bit).
570-
np.testing.assert_array_almost_equal_nulp(norm(1 + 50 * eps), 0.5)
570+
assert_array_almost_equal(norm(1 + 50 * eps), 0.5, decimal=3)
571571

572572

573573
def test_FuncNorm():

0 commit comments

Comments
 (0)
0