From 10dc1bf198c432036f3613049971e20030a2ddd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Tue, 11 Aug 2026 17:52:35 +0200 Subject: [PATCH] gh-155485: Skip `test_pyexpat.test_subparser_inherits_reparse_deferral` when Expat < 2.6.0 (GH-155554) (cherry picked from commit 76d556e7a33d982f18a935f289e82d205696aadd) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Miro HronĨok Assisted-By: Claude Opus 4.6 Co-authored-by: Stan Ulbrych --- Lib/test/test_pyexpat.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Lib/test/test_pyexpat.py b/Lib/test/test_pyexpat.py index b3609ac3e68bd81..ff993c3b58ce86d 100644 --- a/Lib/test/test_pyexpat.py +++ b/Lib/test/test_pyexpat.py @@ -996,6 +996,9 @@ def test_parent_parser_outlives_its_subparsers__chain(self): del parser del subparser + # gh-155485: GetReparseDeferralEnabled always returns False with Expat <2.6.0. + @unittest.skipIf(not expat.ParserCreate().GetReparseDeferralEnabled(), + "requires Python compiled with Expat >= 2.6.0") def test_subparser_inherits_reparse_deferral(self): for enabled in (True, False): parser = expat.ParserCreate()