From 5c7d9281a3230801e6f738984c3877904cf948a8 Mon Sep 17 00:00:00 2001 From: Greg Lucas Date: Tue, 23 Aug 2022 08:07:33 -0600 Subject: [PATCH] Backport PR #23708: Loosen up test_Normalize test --- lib/matplotlib/tests/test_colors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/tests/test_colors.py b/lib/matplotlib/tests/test_colors.py index 30f28fc67ab7..4a098ef068ee 100644 --- a/lib/matplotlib/tests/test_colors.py +++ b/lib/matplotlib/tests/test_colors.py @@ -567,7 +567,7 @@ def test_Normalize(): norm = plt.Normalize(1, 1 + 100 * eps) # This returns exactly 0.5 when longdouble is extended precision (80-bit), # but only a value close to it when it is quadruple precision (128-bit). - np.testing.assert_array_almost_equal_nulp(norm(1 + 50 * eps), 0.5) + assert_array_almost_equal(norm(1 + 50 * eps), 0.5, decimal=3) def test_FuncNorm(): pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy