diff --git a/Lib/test/test_pyexpat.py b/Lib/test/test_pyexpat.py index fd3077063b5f163..581efee6f4c1ff1 100644 --- a/Lib/test/test_pyexpat.py +++ b/Lib/test/test_pyexpat.py @@ -956,6 +956,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()