Skip to content

Commit 751d697

Browse files
tests/: fix test_3624() with latest mupdf.
Updated expected output to match changes to subsampling in mupdf.
1 parent 65e6abf commit 751d697

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
17 Bytes
Loading

tests/test_general.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1711,9 +1711,14 @@ def test_3624():
17111711
print(f'Saving to {path_png=}.')
17121712
pixmap.save(path_png)
17131713
rms = gentle_compare.pixmaps_rms(path_png_expected, path_png)
1714+
print(f'{rms=}')
17141715
# We get small differences in sysinstall tests, where some thirdparty
17151716
# libraries can differ.
1716-
assert rms < 1
1717+
if rms > 1:
1718+
pixmap_diff = gentle_compare.pixmaps_diff(path_png_expected, path_png)
1719+
path_png_diff = os.path.normpath(f'{__file__}/../../tests/test_3624_diff.png')
1720+
pixmap_diff.save(path_png_diff)
1721+
assert 0, f'{rms=}'
17171722

17181723

17191724
def test_4043():

0 commit comments

Comments
 (0)