Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 9, 2022. It is now read-only.

Commit e3424d0

Browse files
committed
Loosen up test_Normalize test
Fixes matplotlib#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)

AltStyle によって変換されたページ (->オリジナル) /