diff --git a/Lib/test/test_pyexpat.py b/Lib/test/test_pyexpat.py index ae7cec6540160d5..94010d5a027cbc0 100644 --- a/Lib/test/test_pyexpat.py +++ b/Lib/test/test_pyexpat.py @@ -952,6 +952,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()