forked from pool/python310
Sync with SLE-15-SP4 python310
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python310?expand=0&rev=33
This commit is contained in:
@@ -23,17 +23,15 @@ 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 | 17 +++++++++++++++--
|
Lib/test/test_minidom.py | 17 ++++++++--
|
||||||
Lib/test/test_xml_etree.py | 6 ------
|
Lib/test/test_xml_etree.py | 6 ---
|
||||||
.../2022-02-20-21-03-31.bpo-46811.8BxgdQ.rst | 1 +
|
Misc/NEWS.d/next/Library/2022-02-20-21-03-31.bpo-46811.8BxgdQ.rst | 1
|
||||||
3 files changed, 16 insertions(+), 8 deletions(-)
|
3 files changed, 16 insertions(+), 8 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
|
||||||
|
|
||||||
diff --git a/Lib/test/test_minidom.py b/Lib/test/test_minidom.py
|
|
||||||
index 1663b1f1143dd..97620258d82f6 100644
|
|
||||||
--- 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,10 +6,12 @@
|
@@ -6,10 +6,12 @@ import io
|
||||||
from test import support
|
from test import support
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
@@ -46,7 +44,7 @@ index 1663b1f1143dd..97620258d82f6 100644
|
|||||||
|
|
||||||
|
|
||||||
tstfile = support.findfile("test.xml", subdir="xmltestdata")
|
tstfile = support.findfile("test.xml", subdir="xmltestdata")
|
||||||
@@ -1147,7 +1149,13 @@ def testEncodings(self):
|
@@ -1147,7 +1149,13 @@ class MinidomTest(unittest.TestCase):
|
||||||
|
|
||||||
# Verify that character decoding errors raise exceptions instead
|
# Verify that character decoding errors raise exceptions instead
|
||||||
# of crashing
|
# of crashing
|
||||||
@@ -61,7 +59,7 @@ index 1663b1f1143dd..97620258d82f6 100644
|
|||||||
b'<fran\xe7ais>Comment \xe7a va ? Tr\xe8s bien ?</fran\xe7ais>')
|
b'<fran\xe7ais>Comment \xe7a va ? Tr\xe8s bien ?</fran\xe7ais>')
|
||||||
|
|
||||||
doc.unlink()
|
doc.unlink()
|
||||||
@@ -1609,7 +1617,12 @@ def testEmptyXMLNSValue(self):
|
@@ -1609,7 +1617,12 @@ class MinidomTest(unittest.TestCase):
|
||||||
self.confirm(doc2.namespaceURI == xml.dom.EMPTY_NAMESPACE)
|
self.confirm(doc2.namespaceURI == xml.dom.EMPTY_NAMESPACE)
|
||||||
|
|
||||||
def testExceptionOnSpacesInXMLNSValue(self):
|
def testExceptionOnSpacesInXMLNSValue(self):
|
||||||
@@ -75,11 +73,9 @@ index 1663b1f1143dd..97620258d82f6 100644
|
|||||||
parseString('<element xmlns:abc="http:abc.com/de f g/hi/j k"><abc:foo /></element>')
|
parseString('<element xmlns:abc="http:abc.com/de f g/hi/j k"><abc:foo /></element>')
|
||||||
|
|
||||||
def testDocRemoveChild(self):
|
def testDocRemoveChild(self):
|
||||||
diff --git a/Lib/test/test_xml_etree.py b/Lib/test/test_xml_etree.py
|
|
||||||
index a25f536134c7b..c5292b5e9ef68 100644
|
|
||||||
--- a/Lib/test/test_xml_etree.py
|
--- a/Lib/test/test_xml_etree.py
|
||||||
+++ b/Lib/test/test_xml_etree.py
|
+++ b/Lib/test/test_xml_etree.py
|
||||||
@@ -2192,12 +2192,6 @@ def test_issue6233(self):
|
@@ -2183,12 +2183,6 @@ class BugsTest(unittest.TestCase):
|
||||||
b"<?xml version='1.0' encoding='ascii'?>\n"
|
b"<?xml version='1.0' encoding='ascii'?>\n"
|
||||||
b'<body>tãg</body>')
|
b'<body>tãg</body>')
|
||||||
|
|
||||||
@@ -92,9 +88,6 @@ index a25f536134c7b..c5292b5e9ef68 100644
|
|||||||
def test_issue6565(self):
|
def test_issue6565(self):
|
||||||
elem = ET.XML("<body><tag/></body>")
|
elem = ET.XML("<body><tag/></body>")
|
||||||
self.assertEqual(summarize_list(elem), ['tag'])
|
self.assertEqual(summarize_list(elem), ['tag'])
|
||||||
diff --git a/Misc/NEWS.d/next/Library/2022-02-20-21-03-31.bpo-46811.8BxgdQ.rst b/Misc/NEWS.d/next/Library/2022-02-20-21-03-31.bpo-46811.8BxgdQ.rst
|
|
||||||
new file mode 100644
|
|
||||||
index 0000000000000..6969bd1898f65
|
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/Misc/NEWS.d/next/Library/2022-02-20-21-03-31.bpo-46811.8BxgdQ.rst
|
+++ b/Misc/NEWS.d/next/Library/2022-02-20-21-03-31.bpo-46811.8BxgdQ.rst
|
||||||
@@ -0,0 +1 @@
|
@@ -0,0 +1 @@
|
||||||
|
|||||||
Reference in New Issue
Block a user