Skip to content

Commit 7e5be5f

Browse files
miss-islingtonhroncokStanFromIreland
authored
[3.14] gh-155485: Skip test_pyexpat.test_subparser_inherits_reparse_deferral when Expat < 2.6.0 (GH-155554) (#155572)
(cherry picked from commit 76d556e) Assisted-By: Claude Opus 4.6 Co-authored-by: Miro Hrončok <miro@hroncok.cz> Co-authored-by: Stan Ulbrych <stan@python.org>
1 parent f3648f4 commit 7e5be5f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Lib/test/test_pyexpat.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -956,6 +956,9 @@ def test_parent_parser_outlives_its_subparsers__chain(self):
956956
del parser
957957
del subparser
958958

959+
# gh-155485: GetReparseDeferralEnabled always returns False with Expat <2.6.0.
960+
@unittest.skipIf(not expat.ParserCreate().GetReparseDeferralEnabled(),
961+
"requires Python compiled with Expat >= 2.6.0")
959962
def test_subparser_inherits_reparse_deferral(self):
960963
for enabled in (True, False):
961964
parser = expat.ParserCreate()

0 commit comments

Comments
 (0)