From 0c3ac2e59afa3d09981f508f3b7b96d342b37255 Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Wed, 22 Jun 2016 19:39:22 +0200 Subject: [PATCH] Fix Python 2.7.11 tests for Expat 2.2.0 Related commit in Expat: 550eb6bbaa7e6efc44e94cab945fe9c781c01211 --- Lib/test/test_pyexpat.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_pyexpat.py b/Lib/test/test_pyexpat.py index eba9058..5fb6af2 100644 --- a/Lib/test/test_pyexpat.py +++ b/Lib/test/test_pyexpat.py @@ -614,7 +614,10 @@ class MalformedInputText(unittest.TestCase): parser.Parse(xml, True) self.fail() except expat.ExpatError as e: - self.assertEqual(str(e), 'XML declaration not well-formed: line 1, column 14') + self.assertIn(str(e), [ + 'XML declaration not well-formed: line 1, column 13', + 'XML declaration not well-formed: line 1, column 14', + ]) class ForeignDTDTests(unittest.TestCase): """ -- 2.9.0