Skip to content

Commit da2bfe6

Browse files
tests/: fix test failures with sysinstalls.
We allow small differences in generated page bitmaps, which can occur due to different third-party libraries in sysinstalls.
1 parent 7a286f7 commit da2bfe6

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

tests/test_annots.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,4 +416,6 @@ def test_3863():
416416
print(f'{path_png=}.')
417417
print(f'{path_png_expected=}.')
418418
rms = gentle_compare.pixmaps_rms(path_png, path_png_expected, ' ')
419-
assert rms == 0
419+
# We get small differences in sysinstall tests, where some
420+
# thirdparty libraries can differ.
421+
assert rms < 1

tests/test_general.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1380,4 +1380,6 @@ def test_3624():
13801380
if pymupdf.mupdf_version_tuple < (1, 24, 10):
13811381
assert rms > 12
13821382
else:
1383-
assert rms == 0
1383+
# We get small differences in sysinstall tests, where some
1384+
# thirdparty libraries can differ.
1385+
assert rms < 1

0 commit comments

Comments
 (0)