1
1
mirror of https://github.com/Kozea/WeasyPrint.git synced 2024-10-04 07:57:52 +03:00

Fix error message

This commit is contained in:
Lucie Anglade 2021-04-17 18:09:27 +02:00
parent 3f1025ecec
commit 9f1c7182f8

View File

@ -138,8 +138,8 @@ def assert_pixels_equal(name, width, height, raw, expected_raw, tolerance=0):
expected_raw = [
pixel or (255, 255, 255) for pixel in expected_raw]
write_png(name + '.expected', expected_raw, width, height)
x = i // width
y = i % width
x = i % width
y = i // width
assert 0, (
f'Pixel ({x}, {y}) in {name}: '
f'expected rgba{expected}, got rgba{value}')