Author: Armin Rigo <[email protected]>
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")
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to