[pypy-commit] pypy llvm-translation-backend: Fix this test by using the new entrypoint API.

mjacob pypy.commits at gmail.com
Mon Jan 11 17:13:18 EST 2016


Author: Manuel Jacob <me at manueljacob.de>
Branch: llvm-translation-backend
Changeset: r81678:03e0a99cf23b
Date: 2016-01-11 22:58 +0100
http://bitbucket.org/pypy/pypy/changeset/03e0a99cf23b/

Log:	Fix this test by using the new entrypoint API.

diff --git a/rpython/translator/llvm/test/test_genllvm.py b/rpython/translator/llvm/test/test_genllvm.py
--- a/rpython/translator/llvm/test/test_genllvm.py
+++ b/rpython/translator/llvm/test/test_genllvm.py
@@ -534,14 +534,14 @@
         assert fc(1) == 0
 
     def test_entrypoints(self):
-        from rpython.rlib.entrypoint import entrypoint
+        from rpython.rlib.entrypoint import entrypoint_highlevel
         from rpython.translator.interactive import Translation
 
         def f(args):
             return 3
 
         key = 'test_entrypoints42'
-        @entrypoint(key, [int], 'foobar')
+        @entrypoint_highlevel(key, [int], 'foobar')
         def g(x):
             return x + 42
 


More information about the pypy-commit mailing list