[pypy-commit] pypy llvm-translation-backend: Fix test_interactive.test_simple_source_llvm.

Manuel Jacob noreply at buildbot.pypy.org
Thu May 22 08:29:09 CEST 2014


Author: Manuel Jacob
Branch: llvm-translation-backend
Changeset: r71670:198f0f083d39
Date: 2014-05-22 08:28 +0200
http://bitbucket.org/pypy/pypy/changeset/198f0f083d39/

Log:	Fix test_interactive.test_simple_source_llvm.

diff --git a/rpython/translator/test/test_interactive.py b/rpython/translator/test/test_interactive.py
--- a/rpython/translator/test/test_interactive.py
+++ b/rpython/translator/test/test_interactive.py
@@ -55,15 +55,15 @@
     py.test.raises(Exception, "t.source()")
 
 def test_simple_source_llvm():
-    def f(x,y):
-        return x+y
+    def f(args):
+        return 0
 
-    t = Translation(f, [int, int], backend='llvm')
-    t.source(gc='boehm')
+    t = Translation(f, None, backend='llvm')
+    t.source(gc='ref')
     assert 'source_llvm' in t.driver.done
 
-    t = Translation(f, [int, int])
-    t.source_llvm()
+    t = Translation(f, None)
+    t.source_llvm(gc='ref')
     assert 'source_llvm' in t.driver.done
 
 def test_disable_logic():


More information about the pypy-commit mailing list