system/python3: multiple test failures after expat bump
See #519 (closed).
Found on ppc64.
== Tests result: FAILURE ==
359 tests OK.
3 tests failed:
test_minidom test_xml_etree test_xml_etree_c
26 tests skipped:
test_dbm_gnu test_dbm_ndbm test_devpoll test_idle test_ioctl
test_kqueue test_msilib test_nis test_ossaudiodev test_readline
test_smtpnet test_socketserver test_startfile test_tcl test_tix
test_tk test_ttk_guionly test_ttk_textonly test_turtle
test_urllib2net test_urllibnet test_winconsoleio test_winreg
test_winsound test_xmlrpc_net test_zipfile64
0:05:54 load avg: 1.05
0:05:54 load avg: 1.05 Re-running failed tests in verbose mode
0:05:54 load avg: 1.05 Re-running test_xml_etree in verbose mode (matching: test_issue3151)
test_issue3151 (test.test_xml_etree.BugsTest) ... test test_xml_etree failed
ERROR
======================================================================
ERROR: test_issue3151 (test.test_xml_etree.BugsTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/root/packages/system/python3/src/Python-3.10.1/Lib/xml/etree/ElementTree.py", line 1718, in feed
self.parser.Parse(data, False)
xml.parsers.expat.ExpatError: syntax error: line 1, column 0
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/packages/system/python3/src/Python-3.10.1/Lib/test/test_xml_etree.py", line 2187, in test_issue3151
e = ET.XML('<prefix:localname xmlns:prefix="${stuff}"/>')
File "/root/packages/system/python3/src/Python-3.10.1/Lib/xml/etree/ElementTree.py", line 1347, in XML
parser.feed(text)
File "/root/packages/system/python3/src/Python-3.10.1/Lib/xml/etree/ElementTree.py", line 1720, in feed
self._raiseerror(v)
File "/root/packages/system/python3/src/Python-3.10.1/Lib/xml/etree/ElementTree.py", line 1627, in _raiseerror
raise err
xml.etree.ElementTree.ParseError: syntax error: line 1, column 0
----------------------------------------------------------------------
Ran 1 test in 0.009s
FAILED (errors=1)
0:05:55 load avg: 1.05 Re-running test_minidom in verbose mode (matching: testEncodings, testExceptionOnSpacesInXMLNSValue)
testEncodings (test.test_minidom.MinidomTest) ... ERROR
testExceptionOnSpacesInXMLNSValue (test.test_minidom.MinidomTest) ... test test_minidom failed
ERROR
======================================================================
ERROR: testEncodings (test.test_minidom.MinidomTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/root/packages/system/python3/src/Python-3.10.1/Lib/test/test_minidom.py", line 1150, in testEncodings
self.assertRaises(UnicodeDecodeError, parseString,
File "/root/packages/system/python3/src/Python-3.10.1/Lib/unittest/case.py", line 738, in assertRaises
return context.handle('assertRaises', args, kwargs)
File "/root/packages/system/python3/src/Python-3.10.1/Lib/unittest/case.py", line 201, in handle
callable_obj(*args, **kwargs)
File "/root/packages/system/python3/src/Python-3.10.1/Lib/xml/dom/minidom.py", line 1998, in parseString
return expatbuilder.parseString(string)
File "/root/packages/system/python3/src/Python-3.10.1/Lib/xml/dom/expatbuilder.py", line 925, in parseString
return builder.parseString(string)
File "/root/packages/system/python3/src/Python-3.10.1/Lib/xml/dom/expatbuilder.py", line 223, in parseString
parser.Parse(string, True)
xml.parsers.expat.ExpatError: not well-formed (invalid token): line 1, column 5
======================================================================
ERROR: testExceptionOnSpacesInXMLNSValue (test.test_minidom.MinidomTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/root/packages/system/python3/src/Python-3.10.1/Lib/test/test_minidom.py", line 1613, in testExceptionOnSpacesInXMLNSValue
parseString('<element xmlns:abc="http:abc.com/de f g/hi/j k"><abc:foo /></element>')
File "/root/packages/system/python3/src/Python-3.10.1/Lib/xml/dom/minidom.py", line 1998, in parseString
return expatbuilder.parseString(string)
File "/root/packages/system/python3/src/Python-3.10.1/Lib/xml/dom/expatbuilder.py", line 925, in parseString
return builder.parseString(string)
File "/root/packages/system/python3/src/Python-3.10.1/Lib/xml/dom/expatbuilder.py", line 223, in parseString
parser.Parse(string, True)
xml.parsers.expat.ExpatError: syntax error: line 1, column 0
----------------------------------------------------------------------
Ran 2 tests in 0.009s
FAILED (errors=2)
0:05:55 load avg: 1.05 Re-running test_xml_etree_c in verbose mode (matching: test_issue3151)
----------------------------------------------------------------------
Ran 0 tests in 0.000s
OK
2 tests failed again:
test_minidom test_xml_etree
== Tests result: FAILURE then FAILURE ==