Commits

Maciej Fijalkowski  committed 860d24d

fix codewriter tests

  • Participants
  • Parent commits 27c0ece
  • Branches jitframe-on-heap

Comments (0)

Files changed (4)

File rpython/jit/codewriter/test/test_call.py

     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!")
             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])

File rpython/jit/codewriter/test/test_codewriter.py

 class FakeCPU:
     def __init__(self, rtyper):
         self.rtyper = rtyper
+
+    class tracker:
+        pass
+    
     calldescrof = FakeCallDescr
     fielddescrof = FakeFieldDescr
     sizeof = FakeSizeDescr

File rpython/jit/codewriter/test/test_flatten.py

         return c_func, lltype.Signed
 
 class FakeCPU:
+    class tracker:
+        pass
+    
     def __init__(self, rtyper):
         rtyper._builtin_func_for_spec_cache = FakeDict()
         self.rtyper = rtyper

File rpython/jit/codewriter/test/test_jtransform.py

     instance_reprs = {}
 
 class FakeCPU:
+    class tracker:
+        pass
+    
     rtyper = FakeRTyper()
     def calldescrof(self, FUNC, ARGS, RESULT):
         return ('calldescr', FUNC, ARGS, RESULT)