[pypy-commit] pypy py3k: bring over another skip from the default branch

pjenvey noreply at buildbot.pypy.org
Wed Mar 13 19:22:29 CET 2013


Author: Philip Jenvey <pjenvey at underboss.org>
Branch: py3k
Changeset: r62328:bdd3b8dbd909
Date: 2013-03-13 11:21 -0700
http://bitbucket.org/pypy/pypy/changeset/bdd3b8dbd909/

Log:	bring over another skip from the default branch

diff --git a/lib-python/3/test/test_pyexpat.py b/lib-python/3/test/test_pyexpat.py
--- a/lib-python/3/test/test_pyexpat.py
+++ b/lib-python/3/test/test_pyexpat.py
@@ -2,6 +2,7 @@
 # handler, are obscure and unhelpful.
 
 from io import BytesIO
+import sys
 import unittest
 
 from xml.parsers import expat
@@ -584,6 +585,9 @@
         self.assertEqual(self.n, 4)
 
 class MalformedInputTest(unittest.TestCase):
+    # CPython seems to ship its own version of expat, they fixed it on this commit :
+    # http://svn.python.org/view?revision=74429&view=revision
+    @unittest.skipIf(sys.platform == "darwin", "Expat is broken on Mac OS X 10.6.6")
     def test1(self):
         xml = "\0\r\n"
         parser = expat.ParserCreate()
@@ -593,6 +597,7 @@
         except expat.ExpatError as e:
             self.assertEqual(str(e), 'unclosed token: line 2, column 0')
 
+    @unittest.skipIf(sys.platform == "darwin", "Expat is broken on Mac OS X 10.6.6")
     def test2(self):
         xml = "<?xml version\xc2\x85='1.0'?>\r\n"
         parser = expat.ParserCreate()


More information about the pypy-commit mailing list