[pypy-commit] pypy py3k: skip these when hosted on a narrow build, they require a fully fledged wide build
pjenvey
noreply at buildbot.pypy.org
Tue May 27 22:10:58 CEST 2014
Author: Philip Jenvey <pjenvey at underboss.org>
Branch: py3k
Changeset: r71747:9af57c80e37f
Date: 2014-05-27 13:09 -0700
http://bitbucket.org/pypy/pypy/changeset/9af57c80e37f/
Log: skip these when hosted on a narrow build, they require a fully
fledged wide build
diff --git a/pypy/objspace/std/test/test_complexobject.py b/pypy/objspace/std/test/test_complexobject.py
--- a/pypy/objspace/std/test/test_complexobject.py
+++ b/pypy/objspace/std/test/test_complexobject.py
@@ -378,6 +378,7 @@
assert self.almost_equal(complex(real=float2(17.), imag=float2(23.)), 17+23j)
raises(TypeError, complex, float2(None))
+ @py.test.mark.skipif("not config.option.runappdirect and sys.maxunicode == 0xffff")
def test_constructor_unicode(self):
b1 = '\N{MATHEMATICAL BOLD DIGIT ONE}' # 𝟏
b2 = '\N{MATHEMATICAL BOLD DIGIT TWO}' # 𝟐
diff --git a/pypy/objspace/std/test/test_floatobject.py b/pypy/objspace/std/test/test_floatobject.py
--- a/pypy/objspace/std/test/test_floatobject.py
+++ b/pypy/objspace/std/test/test_floatobject.py
@@ -471,6 +471,7 @@
else:
assert False, 'did not raise'
+ @py.test.mark.skipif("not config.option.runappdirect and sys.maxunicode == 0xffff")
def test_float_from_unicode(self):
s = '\U0001D7CF\U0001D7CE.4' # 𝟏𝟎.4
assert float(s) == 10.4
diff --git a/pypy/objspace/std/test/test_longobject.py b/pypy/objspace/std/test/test_longobject.py
--- a/pypy/objspace/std/test/test_longobject.py
+++ b/pypy/objspace/std/test/test_longobject.py
@@ -360,6 +360,7 @@
b = A(5).real
assert type(b) is int
+ @py.test.mark.skipif("not config.option.runappdirect and sys.maxunicode == 0xffff")
def test_long_from_unicode(self):
raises(ValueError, int, '123L')
assert int('L', 22) == 21
diff --git a/pypy/objspace/std/test/test_unicodeobject.py b/pypy/objspace/std/test/test_unicodeobject.py
--- a/pypy/objspace/std/test/test_unicodeobject.py
+++ b/pypy/objspace/std/test/test_unicodeobject.py
@@ -11,7 +11,10 @@
w_s = space.wrap(u"\N{EM SPACE}-3\N{EN SPACE}")
s2 = unicode_to_decimal_w(space, w_s)
assert s2 == " -3 "
- #
+
+ @py.test.mark.skipif("not config.option.runappdirect and sys.maxunicode == 0xffff")
+ def test_unicode_to_decimal_w_wide(self, space):
+ from pypy.objspace.std.unicodeobject import unicode_to_decimal_w
w_s = space.wrap(u'\U0001D7CF\U0001D7CE') # 𝟏𝟎
s2 = unicode_to_decimal_w(space, w_s)
assert s2 == "10"
@@ -238,6 +241,8 @@
# single surrogate character
assert not "\ud800".isprintable()
+ @py.test.mark.skipif("not config.option.runappdirect and sys.maxunicode == 0xffff")
+ def test_isprintable_wide(self):
assert '\U0001F46F'.isprintable() # Since unicode 6.0
assert not '\U000E0020'.isprintable()
More information about the pypy-commit
mailing list