[pypy-svn] pypy real-rffi.INT: Fix a test

amauryfa commits-noreply at bitbucket.org
Wed Mar 2 01:44:39 CET 2011


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: real-rffi.INT
Changeset: r42376:43d15322e989
Date: 2011-03-02 01:42 +0100
http://bitbucket.org/pypy/pypy/changeset/43d15322e989/

Log:	Fix a test

diff --git a/pypy/rpython/lltypesystem/test/test_rffi.py b/pypy/rpython/lltypesystem/test/test_rffi.py
--- a/pypy/rpython/lltypesystem/test/test_rffi.py
+++ b/pypy/rpython/lltypesystem/test/test_rffi.py
@@ -558,8 +558,9 @@
         assert interpret(f, []) == 3
     
     def test_structcopy(self):
-        X2 = lltype.Struct('X2', ('x', LONG))
-        X1 = lltype.Struct('X1', ('a', LONG), ('x2', X2), ('p', lltype.Ptr(X2)))
+        X2 = lltype.Struct('X2', ('x', lltype.Signed))
+        X1 = lltype.Struct('X1', ('a', lltype.Signed), ('x2', X2),
+                                 ('p', lltype.Ptr(X2)))
         def f():
             p2 = make(X2, x=123)
             p1 = make(X1, a=5, p=p2)


More information about the Pypy-commit mailing list