Skip to content

Commit

Permalink
Fix different rendering test
Browse files Browse the repository at this point in the history
Related to #2305.
  • Loading branch information
liZe committed Dec 7, 2024
1 parent 8d24a10 commit aa929d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/draw/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def assert_different_renderings(name, *documents):

for i, pixels_1 in enumerate(pixels_list, start=1):
for j, pixels_2 in enumerate(pixels_list[i:], start=i+1):
if pixels_1 == pixels_2: # pragma: no cover
if tuple(pixels_1) == tuple(pixels_2): # pragma: no cover
name_1, name_2 = f'{name}_{i}', f'{name}_{j}'
write_png(name_1, pixels_1, width, height)
assert False, f'{name_1} and {name_2} are the same'
Expand Down

0 comments on commit aa929d8

Please sign in to comment.