forked from pool/python39
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
This commit is contained in:
@@ -23,13 +23,13 @@ Also, test_minidom.py: Support Expat >=2.4.5
|
|||||||
|
|
||||||
Co-authored-by: Sebastian Pipping <sebastian@pipping.org>
|
Co-authored-by: Sebastian Pipping <sebastian@pipping.org>
|
||||||
---
|
---
|
||||||
Lib/test/test_minidom.py | 25 ++++++++++---------------
|
Lib/test/test_minidom.py | 23 +++++++++--------------
|
||||||
1 file changed, 10 insertions(+), 15 deletions(-)
|
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
|
create mode 100644 Misc/NEWS.d/next/Library/2022-02-20-21-03-31.bpo-46811.8BxgdQ.rst
|
||||||
|
|
||||||
--- a/Lib/test/test_minidom.py
|
--- a/Lib/test/test_minidom.py
|
||||||
+++ b/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
|
from test import support
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
@@ -37,12 +37,6 @@ Co-authored-by: Sebastian Pipping <sebastian@pipping.org>
|
|||||||
import xml.dom.minidom
|
import xml.dom.minidom
|
||||||
|
|
||||||
from xml.dom.minidom import parse, Node, Document, parseString
|
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):
|
@@ -1149,13 +1148,11 @@ class MinidomTest(unittest.TestCase):
|
||||||
|
|
||||||
# Verify that character decoding errors raise exceptions instead
|
# Verify that character decoding errors raise exceptions instead
|
||||||
|
|||||||
Reference in New Issue
Block a user