Author: Armin Rigo <[email protected]>
Branch: cffi-1.0
Changeset: r1767:fe0fdb4f6ce3
Date: 2015-04-18 19:16 +0200
http://bitbucket.org/cffi/cffi/changeset/fe0fdb4f6ce3/
Log: now, some mismatches show up lazily
diff --git a/new/test_verify1.py b/new/test_verify1.py
--- a/new/test_verify1.py
+++ b/new/test_verify1.py
@@ -472,7 +472,8 @@
ffi.cdef("struct foo_s { %s x; ...; };" % typename)
try:
ffi.verify("struct foo_s { %s x; };" % real)
- except VerificationError:
+ ffi.new("struct foo_s *") # because some mismatches show up lazily
+ except (VerificationError, ffi.error):
if not expect_mismatch:
if testing_by_size and typename != real:
print("ignoring mismatch between %s* and %s* even though "
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit