[pypy-commit] pypy stm-gc: Fix test

arigo noreply at buildbot.pypy.org
Mon Apr 30 15:52:51 CEST 2012


Author: Armin Rigo <arigo at tunes.org>
Branch: stm-gc
Changeset: r54829:b0058053a047
Date: 2012-04-30 15:50 +0200
http://bitbucket.org/pypy/pypy/changeset/b0058053a047/

Log:	Fix test

diff --git a/pypy/rpython/memory/gctransform/test/test_framework.py b/pypy/rpython/memory/gctransform/test/test_framework.py
--- a/pypy/rpython/memory/gctransform/test/test_framework.py
+++ b/pypy/rpython/memory/gctransform/test/test_framework.py
@@ -30,7 +30,7 @@
     def entrypoint(argv):
         a = A()
         a.b = g(1)
-        return str(a.b)
+        return a.b
 
     from pypy.rpython.llinterp import LLInterpreter
     from pypy.translator.c.genc import CStandaloneBuilder
@@ -43,18 +43,15 @@
     entrypointptr = cbuild.getentrypointptr()
     entrygraph = entrypointptr._obj.graph
 
-    r_list_of_strings = t.rtyper.getrepr(s_list_of_strings)
-    ll_argv = r_list_of_strings.convert_const([])
-
     llinterp = LLInterpreter(t.rtyper)
 
     # FIIIIISH
     setupgraph = db.gctransformer.frameworkgc_setup_ptr.value._obj.graph
     llinterp.eval_graph(setupgraph, [])
 
-    res = llinterp.eval_graph(entrygraph, [ll_argv])
+    res = llinterp.eval_entry_point(entrygraph, [])
 
-    assert ''.join(res.chars) == "2"
+    assert res == 2
 
 def test_cancollect():
     S = lltype.GcStruct('S', ('x', lltype.Signed))


More information about the pypy-commit mailing list