[pypy-svn] r26260 - pypy/dist/pypy/translator/cl/test

sanxiyn at codespeak.net sanxiyn at codespeak.net
Mon Apr 24 13:10:11 CEST 2006


Author: sanxiyn
Date: Mon Apr 24 13:10:09 2006
New Revision: 26260

Modified:
   pypy/dist/pypy/translator/cl/test/test_cltrans.py
Log:
Rename a test function f to add_two


Modified: pypy/dist/pypy/translator/cl/test/test_cltrans.py
==============================================================================
--- pypy/dist/pypy/translator/cl/test/test_cltrans.py	(original)
+++ pypy/dist/pypy/translator/cl/test/test_cltrans.py	Mon Apr 24 13:10:09 2006
@@ -108,10 +108,10 @@
         assert cl_sum(range(12)) == 66
 
     def test_int_add(self):
-        def f(number):
+        def add_two(number):
             return number + 2
-        cl_add = make_cl_func(f, [int])
-        assert cl_add(5) == 7
+        cl_add_two = make_cl_func(add_two, [int])
+        assert cl_add_two(5) == 7
 
 
 # TODO



More information about the Pypy-commit mailing list