[pypy-svn] r16405 - pypy/dist/lib-python/modified-2.4.1/test

nik at codespeak.net nik at codespeak.net
Wed Aug 24 18:02:19 CEST 2005


Author: nik
Date: Wed Aug 24 18:02:19 2005
New Revision: 16405

Modified:
   pypy/dist/lib-python/modified-2.4.1/test/test_array.py
Log:
disabled one test for UCS-4 builds that passes in CPython because of a bug.
test_array passes again.


Modified: pypy/dist/lib-python/modified-2.4.1/test/test_array.py
==============================================================================
--- pypy/dist/lib-python/modified-2.4.1/test/test_array.py	(original)
+++ pypy/dist/lib-python/modified-2.4.1/test/test_array.py	Wed Aug 24 18:02:19 2005
@@ -733,6 +733,14 @@
 
             self.assertRaises(TypeError, a.fromunicode)
 
+        def test_byteswap(self):
+            import sys
+            if sys.maxunicode > 0xffff:
+                return # Byteswapping results in invalid unicode characters for
+                       # UCS-4 builds. That this works in CPython is really a
+                       # bug.
+            StringTest.test_byteswap(self)
+
     tests.append(UnicodeTest)
 
 class NumberTest(BaseTest):



More information about the Pypy-commit mailing list