Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r680:68b9e6bac2c6
Date: 2012-07-25 20:10 +0200
http://bitbucket.org/cffi/cffi/changeset/68b9e6bac2c6/

Log:    Improve the test to check for int(unicode-char-that-would-be-
        accidentally-signed)

diff --git a/c/test_c.py b/c/test_c.py
--- a/c/test_c.py
+++ b/c/test_c.py
@@ -1398,11 +1398,11 @@
     assert str(w) == repr(w)
     assert unicode(w) == u'\u1234'
     assert int(w) == 0x1234
-    w = cast(BWChar, u'\u1234')
-    assert repr(w) == "<cdata 'wchar_t' u'\u1234'>"
+    w = cast(BWChar, u'\u8234')
+    assert repr(w) == "<cdata 'wchar_t' u'\u8234'>"
     assert str(w) == repr(w)
-    assert unicode(w) == u'\u1234'
-    assert int(w) == 0x1234
+    assert unicode(w) == u'\u8234'
+    assert int(w) == 0x8234
     w = cast(BInt, u'\u1234')
     assert repr(w) == "<cdata 'int' 4660>"
     if wchar4:
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to