svg.path icon indicating copy to clipboard operation
svg.path copied to clipboard

tests fail with Pillow 10.1.0

Open doko42 opened this issue 1 year ago • 2 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>

doko42 avatar Nov 24 '23 10:11 doko42

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

regebro avatar Nov 24 '23 11:11 regebro

This is the approach I took for the Debian package: https://github.com/regebro/svg.path/pull/105

bdrung avatar Dec 15 '23 14:12 bdrung