From afa0c529a5135e7de24bf34876d8c711cfa48139238aab86fc9ce998c60abae3 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Sat, 26 Mar 2022 22:51:10 +0000 Subject: [PATCH] Sync with SLE-15-SP4 python310 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python310?expand=0&rev=33 --- support-expat-245.patch | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/support-expat-245.patch b/support-expat-245.patch index de7e1e4..85939a2 100644 --- a/support-expat-245.patch +++ b/support-expat-245.patch @@ -23,17 +23,15 @@ Also, test_minidom.py: Support Expat >=2.4.5 Co-authored-by: Sebastian Pipping --- - Lib/test/test_minidom.py | 17 +++++++++++++++-- - Lib/test/test_xml_etree.py | 6 ------ - .../2022-02-20-21-03-31.bpo-46811.8BxgdQ.rst | 1 + + Lib/test/test_minidom.py | 17 ++++++++-- + Lib/test/test_xml_etree.py | 6 --- + Misc/NEWS.d/next/Library/2022-02-20-21-03-31.bpo-46811.8BxgdQ.rst | 1 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 -diff --git a/Lib/test/test_minidom.py b/Lib/test/test_minidom.py -index 1663b1f1143dd..97620258d82f6 100644 --- a/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 import unittest @@ -46,7 +44,7 @@ index 1663b1f1143dd..97620258d82f6 100644 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 # of crashing @@ -61,7 +59,7 @@ index 1663b1f1143dd..97620258d82f6 100644 b'Comment \xe7a va ? Tr\xe8s bien ?') 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) def testExceptionOnSpacesInXMLNSValue(self): @@ -75,11 +73,9 @@ index 1663b1f1143dd..97620258d82f6 100644 parseString('') 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 +++ b/Lib/test/test_xml_etree.py -@@ -2192,12 +2192,6 @@ def test_issue6233(self): +@@ -2183,12 +2183,6 @@ class BugsTest(unittest.TestCase): b"\n" b'tãg') @@ -92,9 +88,6 @@ index a25f536134c7b..c5292b5e9ef68 100644 def test_issue6565(self): elem = ET.XML("") 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 +++ b/Misc/NEWS.d/next/Library/2022-02-20-21-03-31.bpo-46811.8BxgdQ.rst @@ -0,0 +1 @@