Message info
 
To:pypy-commit@python.org From:arigo Subject:[pypy-commit] pypy default: Fix the test. The issue is not arg+memo. The issue is that you cannot Date:Thu, 12 Apr 2012 17:43:18 +0200 (CEST)
 

Author: Armin Rigo <arigo@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

_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit