[pypy-commit] pypy jitframe-on-heap: fix codewriter tests
fijal
noreply at buildbot.pypy.org
Fri Mar 8 17:12:31 CET 2013
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: jitframe-on-heap
Changeset: r62238:860d24d10cc7
Date: 2013-03-08 17:11 +0200
http://bitbucket.org/pypy/pypy/changeset/860d24d10cc7/
Log: fix codewriter tests
diff --git a/rpython/jit/codewriter/test/test_call.py b/rpython/jit/codewriter/test/test_call.py
--- a/rpython/jit/codewriter/test/test_call.py
+++ b/rpython/jit/codewriter/test/test_call.py
@@ -223,7 +223,7 @@
from rpython.jit.backend.llgraph.runner import LLGraphCPU
from rpython.translator.platform import CompilationError
try:
- from rpython.rlib._rffi_stacklet import switch, thread_handle, handle
+ from rpython.rlib._rffi_stacklet import switch, handle
except CompilationError as e:
if "Unsupported platform!" in e.out:
py.test.skip("Unsupported platform!")
@@ -231,7 +231,7 @@
raise e
@jit.dont_look_inside
def f():
- switch(rffi.cast(thread_handle, 0), rffi.cast(handle, 0))
+ switch(rffi.cast(handle, 0))
rtyper = support.annotate(f, [])
jitdriver_sd = FakeJitDriverSD(rtyper.annotator.translator.graphs[0])
diff --git a/rpython/jit/codewriter/test/test_codewriter.py b/rpython/jit/codewriter/test/test_codewriter.py
--- a/rpython/jit/codewriter/test/test_codewriter.py
+++ b/rpython/jit/codewriter/test/test_codewriter.py
@@ -34,6 +34,10 @@
class FakeCPU:
def __init__(self, rtyper):
self.rtyper = rtyper
+
+ class tracker:
+ pass
+
calldescrof = FakeCallDescr
fielddescrof = FakeFieldDescr
sizeof = FakeSizeDescr
diff --git a/rpython/jit/codewriter/test/test_flatten.py b/rpython/jit/codewriter/test/test_flatten.py
--- a/rpython/jit/codewriter/test/test_flatten.py
+++ b/rpython/jit/codewriter/test/test_flatten.py
@@ -47,6 +47,9 @@
return c_func, lltype.Signed
class FakeCPU:
+ class tracker:
+ pass
+
def __init__(self, rtyper):
rtyper._builtin_func_for_spec_cache = FakeDict()
self.rtyper = rtyper
diff --git a/rpython/jit/codewriter/test/test_jtransform.py b/rpython/jit/codewriter/test/test_jtransform.py
--- a/rpython/jit/codewriter/test/test_jtransform.py
+++ b/rpython/jit/codewriter/test/test_jtransform.py
@@ -33,6 +33,9 @@
instance_reprs = {}
class FakeCPU:
+ class tracker:
+ pass
+
rtyper = FakeRTyper()
def calldescrof(self, FUNC, ARGS, RESULT):
return ('calldescr', FUNC, ARGS, RESULT)
More information about the pypy-commit
mailing list