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 61b8baf commit 9cf9f14Copy full SHA for 9cf9f14
tests/resources/test_4245_expected.png
-2 Bytes
tests/test_textextract.py
@@ -473,8 +473,15 @@ def test_4245():
473
474
path_expected = os.path.normpath(f'{__file__}/../../tests/resources/test_4245_expected.png')
475
rms = gentle_compare.pixmaps_rms(path_expected, pixmap)
476
+ pixmap_diff = gentle_compare.pixmaps_diff(path_expected, pixmap)
477
+ path_diff = os.path.normpath(f'{__file__}/../../tests/resources/test_4245_diff.png')
478
+ pixmap_diff.save(path_diff)
479
print(f'{rms=}')
- assert rms < 0.01
480
+ if pymupdf.mupdf_version_tuple < (1, 26):
481
+ # Prior to fix for mupdf bug 708274.
482
+ assert rms < 0.2
483
+ else:
484
+ assert rms < 0.01
485
486
487
def test_4180():
0 commit comments