[pypy-commit] pypy py3.3: More logs

amauryfa noreply at buildbot.pypy.org
Sun Jun 28 16:31:51 CEST 2015


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: py3.3
Changeset: r78338:2aab118cd687
Date: 2015-06-28 16:32 +0200
http://bitbucket.org/pypy/pypy/changeset/2aab118cd687/

Log:	More logs

diff --git a/rpython/annotator/annrpython.py b/rpython/annotator/annrpython.py
--- a/rpython/annotator/annrpython.py
+++ b/rpython/annotator/annrpython.py
@@ -242,7 +242,10 @@
     def setbinding(self, arg, s_value):
         s_old = arg.annotation
         if s_old is not None:
-            assert s_value.contains(s_old), "%s does not contain %s" % (s_value, s_old)
+            if not s_value.contains(s_old):
+                log.WARNING("%s does not contain %s" % (s_value, s_old))
+                log.WARNING("%s" % annmodel.unionof(s_value, s_old))
+                assert False
         arg.annotation = s_value
 
     def warning(self, msg, pos=None):


More information about the pypy-commit mailing list