[pypy-commit] cffi default: This part of the test only really makes sense if wchar_t

arigo noreply at buildbot.pypy.org
Thu Jul 26 21:50:04 CEST 2012


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r691:800cf3606cea
Date: 2012-07-26 21:49 +0200
http://bitbucket.org/cffi/cffi/changeset/800cf3606cea/

Log:	This part of the test only really makes sense if wchar_t is 4 bytes
	but unicode chars are 2 bytes.

diff --git a/c/test_c.py b/c/test_c.py
--- a/c/test_c.py
+++ b/c/test_c.py
@@ -1441,7 +1441,7 @@
     #assert f(u'a\u1234b') == 3    -- not implemented
     py.test.raises(NotImplementedError, f, u'a\u1234b')
     #
-    if wchar4:
+    if wchar4 and not pyuni4:
         # try out-of-range wchar_t values
         x = cast(BWChar, 1114112)
         py.test.raises(ValueError, unicode, x)


More information about the pypy-commit mailing list