[pypy-commit] cffi default: Improve the test to check for
arigo
noreply at buildbot.pypy.org
Wed Jul 25 21:32:06 CEST 2012
Author: Armin Rigo <arigo at tunes.org>
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:
More information about the pypy-commit
mailing list