Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fb6ff8a

Browse files
committed
Adjust acceptable range
1 parent 737da1e commit fb6ff8a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/tests/test_image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ def test_jpeg_alpha():
474474
# If this fails, there will be only one color (all black). If this
475475
# is working, we should have all 256 shades of grey represented.
476476
print("num colors: ", len(image.getcolors(256)))
477-
assert len(image.getcolors(256)) >= 170 and len(image.getcolors(256)) <= 180
477+
assert len(image.getcolors(256)) >= 175 and len(image.getcolors(256)) <= 185
478478
# The fully transparent part should be red, not white or black
479479
# or anything else
480480
print("corner pixel: ", image.getpixel((0, 0)))

0 commit comments

Comments
 (0)