From 04678e52adee7419f780cb59c214c69685cbb282a8c8e1d3c96d15bfcbe159bc Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 15 Jun 2022 04:53:24 +0000 Subject: [PATCH] Adjust support-expat-CVE-2022-25236-patched.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python39?expand=0&rev=105 --- support-expat-CVE-2022-25236-patched.patch | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/support-expat-CVE-2022-25236-patched.patch b/support-expat-CVE-2022-25236-patched.patch index 30e8b04..011a751 100644 --- a/support-expat-CVE-2022-25236-patched.patch +++ b/support-expat-CVE-2022-25236-patched.patch @@ -23,13 +23,13 @@ Also, test_minidom.py: Support Expat >=2.4.5 Co-authored-by: Sebastian Pipping --- - Lib/test/test_minidom.py | 25 ++++++++++--------------- - 1 file changed, 10 insertions(+), 15 deletions(-) + Lib/test/test_minidom.py | 23 +++++++++-------------- + 1 file changed, 9 insertions(+), 14 deletions(-) create mode 100644 Misc/NEWS.d/next/Library/2022-02-20-21-03-31.bpo-46811.8BxgdQ.rst --- a/Lib/test/test_minidom.py +++ b/Lib/test/test_minidom.py -@@ -6,12 +6,11 @@ import io +@@ -6,7 +6,6 @@ import io from test import support import unittest @@ -37,12 +37,6 @@ Co-authored-by: Sebastian Pipping import xml.dom.minidom from xml.dom.minidom import parse, Node, Document, parseString - from xml.dom.minidom import getDOMImplementation --from xml.parsers.expat import ExpatError -+from xml.parsers.expat import ExpatError, version_info - - - tstfile = support.findfile("test.xml", subdir="xmltestdata") @@ -1149,13 +1148,11 @@ class MinidomTest(unittest.TestCase): # Verify that character decoding errors raise exceptions instead