[pypy-commit] cffi default: Add a test

arigo noreply at buildbot.pypy.org
Sat Jul 7 12:28:38 CEST 2012


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r586:2c85df830498
Date: 2012-07-07 12:28 +0200
http://bitbucket.org/cffi/cffi/changeset/2c85df830498/

Log:	Add a test

diff --git a/c/test_c.py b/c/test_c.py
--- a/c/test_c.py
+++ b/c/test_c.py
@@ -1309,3 +1309,4 @@
     BArray = new_array_type(new_pointer_type(BInt), None)   # int[]
     p = newp(BArray, 7)
     assert repr(p) == "<cdata 'int[]' owning 28 bytes>"
+    assert sizeof(p) == 28


More information about the pypy-commit mailing list