]> granicus.if.org Git - python/commitdiff
This should fix the failure introduced in r77680. The error message is now different...
authorEzio Melotti <ezio.melotti@gmail.com>
Fri, 22 Jan 2010 16:58:28 +0000 (16:58 +0000)
committerEzio Melotti <ezio.melotti@gmail.com>
Fri, 22 Jan 2010 16:58:28 +0000 (16:58 +0000)
Lib/test/test_pyexpat.py

index 649d5d23bfaade5a1bd975d6e145b452ea7dee61..9ea44d7935caade575f02b1f311d70aa8722bea8 100644 (file)
@@ -567,7 +567,7 @@ class MalformedInputText(unittest.TestCase):
             parser.Parse(xml, True)
             self.fail()
         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):
         xml = "<?xml version\xc2\x85='1.0'?>\r\n"