[pypy-commit] pypy jit-applevel-hook: fix annrpython for late annotations. A bit unclear to me how to test

fijal noreply at buildbot.pypy.org
Wed Jun 1 15:50:36 CEST 2011


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: jit-applevel-hook
Changeset: r44622:059d7b72c76d
Date: 2011-06-01 15:36 +0200
http://bitbucket.org/pypy/pypy/changeset/059d7b72c76d/

Log:	fix annrpython for late annotations. A bit unclear to me how to test
	this particular change :-/

diff --git a/pypy/annotation/annrpython.py b/pypy/annotation/annrpython.py
--- a/pypy/annotation/annrpython.py
+++ b/pypy/annotation/annrpython.py
@@ -228,7 +228,7 @@
             # graph -- it's already low-level operations!
             for a, s_newarg in zip(graph.getargs(), cells):
                 s_oldarg = self.binding(a)
-                assert s_oldarg.contains(s_newarg)
+                assert annmodel.unionof(s_oldarg, s_newarg) == s_oldarg
         else:
             assert not self.frozen
             for a in cells:


More information about the pypy-commit mailing list