[pypy-commit] cffi default: A failing test.
arigo
noreply at buildbot.pypy.org
Thu Jun 7 21:09:41 CEST 2012
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r266:4ee6c9bac6e5
Date: 2012-06-07 21:09 +0200
http://bitbucket.org/cffi/cffi/changeset/4ee6c9bac6e5/
Log: A failing test.
diff --git a/c/test_c.py b/c/test_c.py
--- a/c/test_c.py
+++ b/c/test_c.py
@@ -699,6 +699,11 @@
py.test.raises(OverflowError, "p.a3 = 4")
py.test.raises(OverflowError, "p.a3 = -5")
assert p.a1 == -1 and p.a2 == 3 and p.a3 == -4
+ #
+ # special case for convenience: "int x:1", while normally signed,
+ # allows also setting the value "1" (it still gets read back as -1)
+ p.a1 = 1
+ assert p.a1 == -1
def test_bitfield_instance_init():
BInt = new_primitive_type("int")
More information about the pypy-commit
mailing list