summarylogtreecommitdiffstats
path: root/python-2.6-expat-2.2.patch
blob: 7d23c8b7b6566c72350c48e03436c3c78ab88e7a (plain)
1
2
3
4
5
6
7
8
9
10
11
--- Lib/test/test_pyexpat.py	2013-10-29 16:04:38.000000000 +0100
+++ Lib/test/test_pyexpat.py	2016-07-18 15:53:08.772375096 +0200
@@ -576,7 +576,7 @@
             parser.Parse(xml, True)
             self.fail()
         except expat.ExpatError as e:
-            self.assertEquals(str(e), 'XML declaration not well-formed: line 1, column 14')
+            self.assertTrue(str(e).startswith('XML declaration not well-formed: line 1, column '))
 
 def test_main():
     run_unittest(SetAttributeTest,