Summary: | dev-python/pillow-7.0.0 fails 10 tests on ppc64 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | ernsteiswuerfel <erhard_f> |
Component: | Current packages | Assignee: | Python Gentoo Team <python> |
Status: | RESOLVED OBSOLETE | ||
Severity: | normal | CC: | jstein, ppc64, sam |
Priority: | Normal | Keywords: | TESTFAILURE |
Version: | unspecified | ||
Hardware: | PPC64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
emerge --info build.log (8.1.0, ppc64) emerge --info |
Description
ernsteiswuerfel
2020-01-26 22:09:51 UTC
Created attachment 605030 [details]
emerge --info
Mentioned the failures which happen on ppc64 (big endian) with 7.2.0 here: https://github.com/python-pillow/Pillow/issues/3243#issuecomment-658442427. Created attachment 682312 [details] build.log (8.1.0, ppc64) 8.1.0 certainly looks a better than 7.0.0, only 1 (2?) test failures instead of 10: [...] =============================================== FAILURES =============================================== ______________________________________________ test_cmyk _______________________________________________ @pytest.mark.skipif(not HAS_GHOSTSCRIPT, reason="Ghostscript not available") def test_cmyk(): with Image.open("Tests/images/pil_sample_cmyk.eps") as cmyk_image: assert cmyk_image.mode == "CMYK" assert cmyk_image.size == (100, 100) assert cmyk_image.format == "EPS" cmyk_image.load() assert cmyk_image.mode == "RGB" if features.check("jpg"): with Image.open("Tests/images/pil_sample_rgb.jpg") as target: > assert_image_similar(cmyk_image, target, 10) Tests/test_file_eps.py:75: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Tests/helper.py:134: in assert_image_similar raise e _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ a = <PIL.EpsImagePlugin.EpsImageFile image mode=RGB size=100x100 at 0x3FFF93D8EFD0> b = <PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=100x100 at 0x3FFF9371E250>, epsilon = 10 msg = None def assert_image_similar(a, b, epsilon, msg=None): assert a.mode == b.mode, msg or f"got mode {repr(a.mode)}, expected {repr(b.mode)}" assert a.size == b.size, msg or f"got size {repr(a.size)}, expected {repr(b.size)}" a, b = convert_to_comparable(a, b) diff = 0 for ach, bch in zip(a.split(), b.split()): chdiff = ImageMath.eval("abs(a - b)", a=ach, b=bch).convert("L") diff += sum(i * num for i, num in enumerate(chdiff.histogram())) ave_diff = diff / (a.size[0] * a.size[1]) try: > assert epsilon >= ave_diff, ( (msg or "") + f" average pixel value difference {ave_diff:.4f} > epsilon {epsilon:.4f}" ) E AssertionError: average pixel value difference 119.0294 > epsilon 10.0000 E assert 10 >= 119.0294 Tests/helper.py:123: AssertionError ======================================= short test summary info ======================================== [...] FAILED Tests/test_file_eps.py::test_cmyk - AssertionError: average pixel value difference 119.0294 >... ======================= 1 failed, 1489 passed, 223 skipped, 11 xfailed in 45.91s ======================= * ERROR: dev-python/pillow-8.1.0::gentoo failed (test phase): Created attachment 682315 [details]
emerge --info
Note that on ppc64 with 8.1.1, I only hit one failure (test_cmyk, bug 763309). So we can probably close this? |