Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf8e669 commit 2e12ac9Copy full SHA for 2e12ac9
1 file changed
lib/matplotlib/tests/test_colors.py
@@ -207,7 +207,9 @@ def test_Normalize():
207
# and for scalar ones.
208
eps = np.finfo(np.longdouble).resolution
209
norm = plt.Normalize(1, 1 + 100 * eps)
210
- assert_equal(norm(1 + 50 * eps), .5)
+ # This returns exactly 0.5 when longdouble is extended precision (80-bit),
211
+ # but only a value close to it when it is quadruple precision (128-bit).
212
+ assert 0 < norm(1 + 50 * eps) < 1
213
214
215
def test_SymLogNorm():
0 commit comments