[pypy-commit] pypy default: Fix the test. The issue is not arg+memo. The issue is that you cannot

arigo noreply at buildbot.pypy.org
Thu Apr 12 17:43:18 CEST 2012


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r54315:1da1c1632353
Date: 2012-04-12 17:41 +0200
http://bitbucket.org/pypy/pypy/changeset/1da1c1632353/

Log:	Fix the test. The issue is not arg+memo. The issue is that you
	cannot call the specialize:arg function f with "f(i)", even if you
	just did "if i == 2" before.

diff --git a/pypy/annotation/test/test_annrpython.py b/pypy/annotation/test/test_annrpython.py
--- a/pypy/annotation/test/test_annrpython.py
+++ b/pypy/annotation/test/test_annrpython.py
@@ -3746,9 +3746,9 @@
             return g(i)
         def main(i):
             if i == 2:
-                return f(i)
+                return f(2)
             elif i == 3:
-                return f(i)
+                return f(3)
             else:
                 raise NotImplementedError
 


More information about the pypy-commit mailing list