regebro / svg.path

SVG path objects and parser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tests fail with Pillow 10.1.0

doko42 opened this issue · comments

seen with Pillow 10.1.0:

27s ======================================================================
27s FAIL: test_image (tests.test_image.ImageTest.test_image)
27s ----------------------------------------------------------------------
27s Traceback (most recent call last):
27s File
"/tmp/autopkgtest-lxc.0vs2cq8a/downtmp/build.pRi/src/tests/test_image.py", line
130, in test_image
27s self.assertFalse(
27s AssertionError: (10, 12, 403, 742) is not false : The resulting image is
different from test_image.png
27s
27s ======================================================================
27s FAIL: test_image
(tests.test_boundingbox_image.BoundingBoxImageTest.test_image)
27s ----------------------------------------------------------------------
27s Traceback (most recent call last):
27s File
"/tmp/autopkgtest-lxc.0vs2cq8a/downtmp/build.pRi/src/tests/test_boundingbox_image.py",
line 139, in test_image
27s self.assertFalse(
27s AssertionError: (10, 12, 391, 742) is not false : The resulting image is
different from test_boundingbox_image.png
27s
27s ----------------------------------------------------------------------
27s Ran 46 tests in 0.751s
27s
27s FAILED (failures=2)
27s Test failed: <unittest.runner.TextTestResult run=46 errors=0 failures=2>
27s error: Test failed: <unittest.runner.TextTestResult run=46 errors=0
failures=2>

OK, I'll check. But those tests require the output to be pixel-perfect, so on different operating systems and with different fonts it may fail, and that's OK. :-D

This is the approach I took for the Debian package: #105