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.
2 parents 53d685e + a6a08ad commit dc855edCopy full SHA for dc855ed
lib/matplotlib/tests/test_colors.py
@@ -208,7 +208,9 @@ def test_Normalize():
208
# and for scalar ones.
209
eps = np.finfo(np.longdouble).resolution
210
norm = plt.Normalize(1, 1 + 100 * eps)
211
- assert_equal(norm(1 + 50 * eps), .5)
+ # This returns exactly 0.5 when longdouble is extended precision (80-bit),
212
+ # but only a value close to it when it is quadruple precision (128-bit).
213
+ assert 0 < norm(1 + 50 * eps) < 1
214
215
216
def test_SymLogNorm():
0 commit comments