Author: Amaury Forgeot d'Arc <[email protected]>
Branch:
Changeset: r60253:5eb1d1eb91cb
Date: 2013-01-20 22:12 +0100
http://bitbucket.org/pypy/pypy/changeset/5eb1d1eb91cb/
Log: Correctly skip a test when host CPython is a narrow unicode build.
diff --git a/pypy/module/unicodedata/test_unicodedata.py
b/pypy/module/unicodedata/test_unicodedata.py
--- a/pypy/module/unicodedata/test_unicodedata.py
+++ b/pypy/module/unicodedata/test_unicodedata.py
@@ -1,3 +1,5 @@
+import py
+import sys
class AppTestUnicodeData:
spaceconfig = dict(usemodules=('unicodedata',))
@@ -80,10 +82,10 @@
import unicodedata
raises(TypeError, unicodedata.normalize, 'x')
+ @py.test.mark.skipif("sys.maxunicode < 0x10ffff",
+ reason="requires a 'wide' python build.")
def test_normalize_wide(self):
- import sys, unicodedata
- if sys.maxunicode < 0x10ffff:
- skip("requires a 'wide' python build.")
+ import unicodedata
assert unicodedata.normalize('NFC', u'\U000110a5\U000110ba') ==
u'\U000110ab'
def test_linebreaks(self):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit