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 737da1e commit fb6ff8aCopy full SHA for fb6ff8a
1 file changed
lib/matplotlib/tests/test_image.py
@@ -474,7 +474,7 @@ def test_jpeg_alpha():
474
# If this fails, there will be only one color (all black). If this
475
# is working, we should have all 256 shades of grey represented.
476
print("num colors: ", len(image.getcolors(256)))
477
- assert len(image.getcolors(256)) >= 170 and len(image.getcolors(256)) <= 180
+ assert len(image.getcolors(256)) >= 175 and len(image.getcolors(256)) <= 185
478
# The fully transparent part should be red, not white or black
479
# or anything else
480
print("corner pixel: ", image.getpixel((0, 0)))
0 commit comments