Skip to content

Commit 727f06a

Browse files
julian-smith-artifex-comJorjMcKie
authored andcommitted
tests/test_general.py: test_4034(): updated for fixed mupdf.
1 parent a40749e commit 727f06a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/test_general.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1609,8 +1609,8 @@ def test_4034():
16091609
page = document[0]
16101610
pixmap2 = document[0].get_pixmap()
16111611
rms = gentle_compare.pixmaps_rms(pixmap1, pixmap2)
1612-
print(f'Comparison of original/cleaned page 0 pixmaps: {rms=}.')
1613-
# 2024-11-27: we expect large difference as
1614-
# https://bugs.ghostscript.com/show_bug.cgi?id=708128 not yet fixed.
1615-
#
1616-
assert 30 < rms < 50
1612+
print(f'test_4034(): Comparison of original/cleaned page 0 pixmaps: {rms=}.')
1613+
if pymupdf.mupdf_version_tuple < (1, 25, 2):
1614+
assert 30 < rms < 50
1615+
else:
1616+
assert rms == 0

0 commit comments

Comments
 (0)