Skip to content

Commit 76d556e

Browse files
gh-155485: Skip test_pyexpat.test_subparser_inherits_reparse_deferral when Expat < 2.6.0 (#155554)
Assisted-By: Claude Opus 4.6 Co-authored-by: Stan Ulbrych <stan@python.org>
1 parent d65bf51 commit 76d556e

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
@@ -1045,6 +1045,9 @@ def test_parent_parser_outlives_its_subparsers__chain(self):
10451045
del parser
10461046
del subparser
10471047

1048+
# gh-155485: GetReparseDeferralEnabled always returns False with Expat <2.6.0.
1049+
@unittest.skipIf(not expat.ParserCreate().GetReparseDeferralEnabled(),
1050+
"requires Python compiled with Expat >= 2.6.0")
10481051
def test_subparser_inherits_reparse_deferral(self):
10491052
for enabled in (True, False):
10501053
parser = expat.ParserCreate()

0 commit comments

Comments
 (0)