Skip to content

Commit 3d80925

Browse files
miss-islingtonhroncokStanFromIreland
authored
[3.13] gh-155485: Skip test_pyexpat.test_subparser_inherits_reparse_deferral when Expat < 2.6.0 (GH-155554) (#155573)
(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 3dcd722 commit 3d80925

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
@@ -952,6 +952,9 @@ def test_parent_parser_outlives_its_subparsers__chain(self):
952952
del parser
953953
del subparser
954954

955+
# gh-155485: GetReparseDeferralEnabled always returns False with Expat <2.6.0.
956+
@unittest.skipIf(not expat.ParserCreate().GetReparseDeferralEnabled(),
957+
"requires Python compiled with Expat >= 2.6.0")
955958
def test_subparser_inherits_reparse_deferral(self):
956959
for enabled in (True, False):
957960
parser = expat.ParserCreate()

0 commit comments

Comments
 (0)