Skip to content

Commit 0a787f2

Browse files
miss-islingtonhroncokStanFromIreland
authored
[3.15] gh-155485: Skip test_pyexpat.test_subparser_inherits_reparse_deferral when Expat < 2.6.0 (GH-155554) (#155574)
Co-authored-by: Miro Hrončok <miro@hroncok.cz> Co-authored-by: Stan Ulbrych <stan@python.org>
1 parent ad09d00 commit 0a787f2

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
@@ -996,6 +996,9 @@ def test_parent_parser_outlives_its_subparsers__chain(self):
996996
del parser
997997
del subparser
998998

999+
# gh-155485: GetReparseDeferralEnabled always returns False with Expat <2.6.0.
1000+
@unittest.skipIf(not expat.ParserCreate().GetReparseDeferralEnabled(),
1001+
"requires Python compiled with Expat >= 2.6.0")
9991002
def test_subparser_inherits_reparse_deferral(self):
10001003
for enabled in (True, False):
10011004
parser = expat.ParserCreate()

0 commit comments

Comments
 (0)