We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9cf9f14 commit f63cb4eCopy full SHA for f63cb4e
tests/resources/test_4180_expected.png
-3 Bytes
tests/test_textextract.py
@@ -498,8 +498,15 @@ def test_4180():
498
499
path_expected = os.path.normpath(f'{__file__}/../../tests/resources/test_4180_expected.png')
500
rms = gentle_compare.pixmaps_rms(path_expected, pixmap)
501
+ pixmap_diff = gentle_compare.pixmaps_diff(path_expected, pixmap)
502
+ path_diff = os.path.normpath(f'{__file__}/../../tests/resources/test_4180_diff.png')
503
+ pixmap_diff.save(path_diff)
504
print(f'{rms=}')
- assert rms < 0.01
505
+ if pymupdf.mupdf_version_tuple < (1, 26):
506
+ # Prior to fix for mupdf bug 708274.
507
+ assert rms < 0.3
508
+ else:
509
+ assert rms < 0.01
510
511
512
def test_4182():
0 commit comments