Blame 00211-fix-test-pyexpat-failure.patch

220a669
diff --git a/Lib/test/test_pyexpat.py b/Lib/test/test_pyexpat.py
220a669
index eba9058..2c8a164 100644
220a669
--- a/Lib/test/test_pyexpat.py
220a669
+++ b/Lib/test/test_pyexpat.py
220a669
@@ -610,11 +610,9 @@ class MalformedInputText(unittest.TestCase):
220a669
     def test2(self):
220a669
         xml = "\r\n"
220a669
         parser = expat.ParserCreate()
220a669
-        try:
220a669
+        err_pattern = r'XML declaration not well-formed: line 1, column \d+'
220a669
+        with self.assertRaisesRegexp(expat.ExpatError, err_pattern):
220a669
             parser.Parse(xml, True)
220a669
-            self.fail()
220a669
-        except expat.ExpatError as e:
220a669
-            self.assertEqual(str(e), 'XML declaration not well-formed: line 1, column 14')
220a669
 
220a669
 class ForeignDTDTests(unittest.TestCase):
220a669
     """