FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Backport PR #23708: Loosen up test_Normalize test · meeseeksmachine/matplotlib@5c7d928 · GitHub

Repository navigation

Commit 5c7d928

Browse files
authored andcommitted
Backport PR matplotlib#23708: Loosen up test_Normalize test
1 parent 04b1be5 commit 5c7d928

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎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)

Back | FazBrowse Home | New Git URL