Author: Armin Rigo <ar...@tunes.org>
Branch: 
Changeset: r695:737919ff4eb5
Date: 2012-07-27 03:25 +0200
http://bitbucket.org/cffi/cffi/changeset/737919ff4eb5/

Log:    Fix tests

diff --git a/c/test_c.py b/c/test_c.py
--- a/c/test_c.py
+++ b/c/test_c.py
@@ -995,7 +995,8 @@
     assert f(0) == unichr(0)
     assert f(255) == unichr(255)
     assert f(0x1234) == u'\u1234'
-    assert f(-1) == u'\U00012345'
+    if sizeof(BWChar) == 4:
+        assert f(-1) == u'\U00012345'
 
 def test_struct_with_bitfields():
     BLong = new_primitive_type("long")
@@ -1370,7 +1371,7 @@
         s.a1 = u'\ud807\udf44'
         assert s.a1 == u'\U00011f44'
     else:
-        py.test.raises(ValueError, "s.a1 = u'\U00012345'")
+        py.test.raises(TypeError, "s.a1 = u'\U00012345'")
     #
     BWCharArray = new_array_type(BWCharP, None)
     a = newp(BWCharArray, u'hello \u1234 world')
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to