From a15deadafc98a7ccd7346a57e283cc0e8a91f72f Mon Sep 17 00:00:00 2001 From: Julian Smith Date: Wed, 16 Sep 2026 11:44:43 +0100 Subject: [PATCH] changes.txt tests/: updates to match new fixes on 1.28.x branch. --- changes.txt | 3 +++ tests/test_general.py | 2 +- tests/test_pixmap.py | 2 +- tests/test_widgets.py | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/changes.txt b/changes.txt index f73df520d..ea0f67799 100644 --- a/changes.txt +++ b/changes.txt @@ -7,10 +7,13 @@ Change Log Fixed issues: * **Fixed** `4994 `_: Dehyphenate does no longer work since 1.27.1 +* **Fixed** `5054 `_: clean_contents(sanitize=True) drops glyph positioning, duplicating an overprinted leading glyph (regression in 1.28.0 from 1.27.2.3) * **Fixed** `5059 `_: Annotations disappear or move when using Page.remove_rotation() for 90 or 270 rotated pages * **Fixed** `5067 `_: Memory leak in extractBLOCKS (_as_blocks): text object reference never released * **Fixed** `5077 `_: Page.remove_rotation() takes minutes on pages with thousands of links +* **Fixed** `5082 `_: Regression in 1.28.x: get_pixmap() and get_text() hang at 100% CPU on a specific PDF; works in 1.27.2.3 * **Fixed** `5100 `_: Import of fitz prints to console instead of generating a DeprecationWarning +* **Fixed** `5101 `_: Cyclic Widget /Parent makes page operations fail with FzErrorFormat: code=7: cycle in resources * **Fixed** `5112 `_: Stack-based buffer overflow in JM_set_annot_callout_line Other: diff --git a/tests/test_general.py b/tests/test_general.py index 6c3bea9eb..9e936eb5d 100644 --- a/tests/test_general.py +++ b/tests/test_general.py @@ -2279,7 +2279,7 @@ def test_5054(): text2 = page.get_text() print(f'{text1=}') print(f'{text2=}') - if pymupdf.mupdf_version_tuple < (1, 28, 6): + if pymupdf.mupdf_version_tuple < (1, 28, 5): assert text2 != text1 else: assert text2 == text1 diff --git a/tests/test_pixmap.py b/tests/test_pixmap.py index 61ee3a68d..2e1ddf0ab 100644 --- a/tests/test_pixmap.py +++ b/tests/test_pixmap.py @@ -806,7 +806,7 @@ def test_5082(): except subprocess.TimeoutExpired: timeout = True print(f'test_5082(): {timeout=}') - if pymupdf.mupdf_version_tuple < (1, 28, 6): + if pymupdf.mupdf_version_tuple < (1, 28, 5): assert timeout, f'Expected timeout from {pymupdf.mupdf_version=}.' else: assert not timeout, f'Unexpected timeout from {pymupdf.mupdf_version=}.' diff --git a/tests/test_widgets.py b/tests/test_widgets.py index a36fbf8be..1ba9d9b78 100644 --- a/tests/test_widgets.py +++ b/tests/test_widgets.py @@ -546,7 +546,7 @@ def test_5101(): path = os.path.normpath(f'{__file__}/../../tests/resources/test_5101.pdf') with pymupdf.open(path) as document: print(f'{len(document)=}') - if pymupdf.mupdf_version_tuple >= (1, 28, 6): + if pymupdf.mupdf_version_tuple >= (1, 28, 5): page = document[0] wt = pymupdf.TOOLS.mupdf_warnings() print(f'{wt=}')