8000 Merge pull request #23708 from QuLogic/fix-normalize · matplotlib/matplotlib@ee2f68b · GitHub
[go: up one dir, main page]

Skip to content

Commit ee2f68b

Browse files
authored
Merge pull request #23708 from QuLogic/fix-normalize
Loosen up test_Normalize test
2 parents 1368cfe + e3424d0 commit ee2f68b

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