Commits

Armin Rigo committed 1f49770

Only ignore mismatches between *different* types; using twice the same type must be tested to work.

Comments (0)

Files changed (1)

testing/test_verify.py

         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