[pypy-svn] r16617 - pypy/dist/pypy/module/unicodedata/test

ac at codespeak.net ac at codespeak.net
Fri Aug 26 14:29:29 CEST 2005


Author: ac
Date: Fri Aug 26 14:29:28 2005
New Revision: 16617

Modified:
   pypy/dist/pypy/module/unicodedata/test/test_unicodedata.py
Log:
Skip test if run by a "narrow" python build.



Modified: pypy/dist/pypy/module/unicodedata/test/test_unicodedata.py
==============================================================================
--- pypy/dist/pypy/module/unicodedata/test/test_unicodedata.py	(original)
+++ pypy/dist/pypy/module/unicodedata/test/test_unicodedata.py	Fri Aug 26 14:29:28 2005
@@ -41,6 +41,9 @@
         raises(ValueError, unicodedata.name, unichr(0xD7A3 + 1))
 
     def test_cjk(self):
+        import sys
+        if sys.maxunicode < 0x10ffff:
+            skip("requires a 'wide' python build.")
         import unicodedata
         for first, last in ((0x3400, 0x4DB5),
                             (0x4E00, 0x9FA5), # 9FBB in Unicode 4.1



More information about the Pypy-commit mailing list