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