https://github.com/python/cpython/commit/7e5be5f46400a9e078562d222fc9a2ffd3bb8e61
commit: 7e5be5f46400a9e078562d222fc9a2ffd3bb8e61
branch: 3.14
author: Miss Islington (bot) <[email protected]>
committer: StanFromIreland <[email protected]>
date: 2026-08-11T16:20:28Z
summary:

[3.14] gh-155485: Skip `test_pyexpat.test_subparser_inherits_reparse_deferral` 
when Expat < 2.6.0 (GH-155554) (#155572)

(cherry picked from commit 76d556e7a33d982f18a935f289e82d205696aadd)


Assisted-By: Claude Opus 4.6

Co-authored-by: Miro HronĨok <[email protected]>
Co-authored-by: Stan Ulbrych <[email protected]>

files:
M Lib/test/test_pyexpat.py

diff --git a/Lib/test/test_pyexpat.py b/Lib/test/test_pyexpat.py
index fd3077063b5f16..581efee6f4c1ff 100644
--- a/Lib/test/test_pyexpat.py
+++ b/Lib/test/test_pyexpat.py
@@ -956,6 +956,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()

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to