Matej Cepl
01ce66c584
removing failing test fixing bpo#3151, which we just not support. - Remove patches over those embedded packages (cffi): - python-2.7-libffi-aarch64.patch - sparc_longdouble.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python?expand=0&rev=418
33 lines
1.2 KiB
Diff
33 lines
1.2 KiB
Diff
---
|
|
Lib/test/test_minidom.py | 3 ++-
|
|
Lib/test/test_xml_etree.py | 6 ------
|
|
2 files changed, 2 insertions(+), 7 deletions(-)
|
|
|
|
--- a/Lib/test/test_minidom.py
|
|
+++ b/Lib/test/test_minidom.py
|
|
@@ -1051,7 +1051,8 @@ class MinidomTest(unittest.TestCase):
|
|
|
|
# Verify that character decoding errors raise exceptions instead
|
|
# of crashing
|
|
- self.assertRaises(UnicodeDecodeError, parseString,
|
|
+ self.assertRaises((UnicodeDecodeError, xml.parsers.expat.ExpatError),
|
|
+ parseString,
|
|
'<fran\xe7ais>Comment \xe7a va ? Tr\xe8s bien ?</fran\xe7ais>')
|
|
|
|
doc.unlink()
|
|
--- a/Lib/test/test_xml_etree.py
|
|
+++ b/Lib/test/test_xml_etree.py
|
|
@@ -1482,12 +1482,6 @@ class BugsTest(unittest.TestCase):
|
|
b"<?xml version='1.0' encoding='ascii'?>\n"
|
|
b'<body>tãg</body>')
|
|
|
|
- def test_issue3151(self):
|
|
- e = ET.XML('<prefix:localname xmlns:prefix="${stuff}"/>')
|
|
- self.assertEqual(e.tag, '{${stuff}}localname')
|
|
- t = ET.ElementTree(e)
|
|
- self.assertEqual(ET.tostring(e), b'<ns0:localname xmlns:ns0="${stuff}" />')
|
|
-
|
|
def test_issue6565(self):
|
|
elem = ET.XML("<body><tag/></body>")
|
|
self.assertEqual(summarize_list(elem), ['tag'])
|