[pypy-commit] cffi default: Kill this code, which is a duplicate of the previous test

arigo noreply at buildbot.pypy.org
Thu Aug 23 18:17:59 CEST 2012


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r888:7c54e32cf53f
Date: 2012-08-23 17:50 +0200
http://bitbucket.org/cffi/cffi/changeset/7c54e32cf53f/

Log:	Kill this code, which is a duplicate of the previous test

diff --git a/testing/test_verify.py b/testing/test_verify.py
--- a/testing/test_verify.py
+++ b/testing/test_verify.py
@@ -928,24 +928,6 @@
     assert p.c == 'Y'
     assert p.d == 'Y'
 
-def test_nested_anonymous_struct_exact():
-    ffi = FFI()
-    ffi.cdef("""
-        struct foo_s { struct { int a; char b; }; union { char c, d; }; };
-    """)
-    ffi.verify("""
-        struct foo_s { struct { int a; char b; }; union { char c, d; }; };
-    """)
-    p = ffi.new("struct foo_s *")
-    assert ffi.sizeof(p[0]) == 3 * ffi.sizeof("int")    # with alignment
-    p.a = 1234567
-    p.b = 'X'
-    p.c = 'Y'
-    assert p.a == 1234567
-    assert p.b == 'X'
-    assert p.c == 'Y'
-    assert p.d == 'Y'
-
 def test_nested_anonymous_struct_exact_error():
     ffi = FFI()
     ffi.cdef("""


More information about the pypy-commit mailing list