Commit f8a9402c authored by Ezio Melotti's avatar Ezio Melotti

This should fix the failure introduced in r77680. The error message is now...

This should fix the failure introduced in r77680. The error message is now different and it caused the test to fail. The failing test is not present in 2.5 so it is failing only on 2.6 and newer versions.
parent 86db3420
...@@ -567,7 +567,7 @@ class MalformedInputText(unittest.TestCase): ...@@ -567,7 +567,7 @@ class MalformedInputText(unittest.TestCase):
parser.Parse(xml, True) parser.Parse(xml, True)
self.fail() self.fail()
except expat.ExpatError as e: except expat.ExpatError as e:
self.assertEquals(str(e), 'no element found: line 2, column 1') self.assertEquals(str(e), 'unclosed token: line 2, column 0')
def test2(self): def test2(self):
xml = "<?xml version\xc2\x85='1.0'?>\r\n" xml = "<?xml version\xc2\x85='1.0'?>\r\n"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment