Author: Amaury Forgeot d'Arc <[email protected]>
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):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to