[pypy-svn] r50341 - pypy/branch/applevel-ctypes/pypy/module/_ffi/test

fijal at codespeak.net fijal at codespeak.net
Fri Jan 4 23:33:40 CET 2008


Author: fijal
Date: Fri Jan  4 23:33:40 2008
New Revision: 50341

Modified:
   pypy/branch/applevel-ctypes/pypy/module/_ffi/test/test__ffi.py
Log:
Make test fail more obviously


Modified: pypy/branch/applevel-ctypes/pypy/module/_ffi/test/test__ffi.py
==============================================================================
--- pypy/branch/applevel-ctypes/pypy/module/_ffi/test/test__ffi.py	(original)
+++ pypy/branch/applevel-ctypes/pypy/module/_ffi/test/test__ffi.py	Fri Jan  4 23:33:40 2008
@@ -211,6 +211,10 @@
         inner = lib.ptr("inner_struct_elem", ['P'], 'c')
         X = _ffi.Structure([('x1', 'i'), ('x2', 'h'), ('x3', 'c'), ('next', 'P')])
         x = X(next=X(next=None, x3='x'), x1=1, x2=2, x3='x')
+        print X(x.next).x3
+        print X(x.next).x3
+        print X(x.next).x3
+        print X(x.next).x3
         assert X(x.next).x3 == 'x'
         assert inner(x) == 'x'
         create_double_struct = lib.ptr("create_double_struct", [], 'P')


More information about the pypy-svn mailing list