[pypy-commit] cffi default: Only ignore mismatches between *different* types; using twice the same type must be tested to work.
arigo
noreply at buildbot.pypy.org
Sat Mar 30 18:29:09 CET 2013
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r1211:1f49770a97b2
Date: 2013-03-30 18:28 +0100
http://bitbucket.org/cffi/cffi/changeset/1f49770a97b2/
Log: Only ignore mismatches between *different* types; using twice the
same type must be tested to work.
diff --git a/testing/test_verify.py b/testing/test_verify.py
--- a/testing/test_verify.py
+++ b/testing/test_verify.py
@@ -433,7 +433,7 @@
ffi.verify("struct foo_s { %s x; };" % real)
except VerificationError:
if not expect_mismatch:
- if testing_by_size:
+ if testing_by_size and typename != real:
print("ignoring mismatch between %s* and %s* even though "
"they have the same size" % (typename, real))
return
More information about the pypy-commit
mailing list