[pypy-commit] cffi cffi-1.0: now, some mismatches show up lazily
arigo
noreply at buildbot.pypy.org
Sat Apr 18 19:15:46 CEST 2015
Author: Armin Rigo <arigo at tunes.org>
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 "
More information about the pypy-commit
mailing list