--- 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, 'Comment \xe7a va ? Tr\xe8s bien ?') 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"\n" b'tãg') - def test_issue3151(self): - e = ET.XML('') - self.assertEqual(e.tag, '{${stuff}}localname') - t = ET.ElementTree(e) - self.assertEqual(ET.tostring(e), b'') - def test_issue6565(self): elem = ET.XML("") self.assertEqual(summarize_list(elem), ['tag'])