From fff9b667731f1b606286b1ad4582d8c9a9e15570f8ecd14dc45d7218c30fe7ad Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 17 Oct 2024 12:40:45 +0000 Subject: [PATCH] Recover patch CVE-2023-52425-libexpat-2.6.0-backport-15.6.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python314?expand=0&rev=17 --- CVE-2023-52425-libexpat-2.6.0-backport-15.6.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/CVE-2023-52425-libexpat-2.6.0-backport-15.6.patch b/CVE-2023-52425-libexpat-2.6.0-backport-15.6.patch index 8bb9293..2ebfe4e 100644 --- a/CVE-2023-52425-libexpat-2.6.0-backport-15.6.patch +++ b/CVE-2023-52425-libexpat-2.6.0-backport-15.6.patch @@ -17,6 +17,18 @@ started = [] def start_element(name, _): +--- a/Lib/test/test_sax.py ++++ b/Lib/test/test_sax.py +@@ -1241,6 +1241,9 @@ class ExpatReaderTest(XmlTestBase): + + self.assertEqual(result.getvalue(), start + b"") + ++ @unittest.skipIf(pyexpat.version_info < (2, 6, 0), ++ f'Expat {pyexpat.version_info} does not ' ++ 'support reparse deferral') + def test_flush_reparse_deferral_disabled(self): + result = BytesIO() + xmlgen = XMLGenerator(result) --- a/Lib/test/test_xml_etree.py +++ b/Lib/test/test_xml_etree.py @@ -121,6 +121,11 @@ ATTLIST_XML = """\