Commits

Maciej Fijalkowski committed 584b196

fix tests

  • Participants
  • Parent commits 7bd2b76
  • Branches remove-globals-in-jit

Comments (0)

Files changed (1)

pypy/jit/codewriter/test/test_call.py

     py.test.skip("XXX add a test for CallControl.getcalldescr() -> EF_xxx")
 
 def test_releases_gil_analyzer():
-    from pypy.jit.backend.llgraph.runner import LLtypeCPU
+    from pypy.jit.backend.llgraph.runner import LLGraphCPU
 
     T = rffi.CArrayPtr(rffi.TIME_T)
     external = rffi.llexternal("time", [T], rffi.TIME_T, threadsafe=True)
 
     rtyper = support.annotate(f, [])
     jitdriver_sd = FakeJitDriverSD(rtyper.annotator.translator.graphs[0])
-    cc = CallControl(LLtypeCPU(rtyper), jitdrivers_sd=[jitdriver_sd])
+    cc = CallControl(LLGraphCPU(rtyper), jitdrivers_sd=[jitdriver_sd])
     res = cc.find_all_graphs(FakePolicy())
 
     [f_graph] = [x for x in res if x.func is f]
     assert call_descr.extrainfo.has_random_effects()
 
 def test_random_effects_on_stacklet_switch():
-    from pypy.jit.backend.llgraph.runner import LLtypeCPU
+    from pypy.jit.backend.llgraph.runner import LLGraphCPU
     from pypy.translator.platform import CompilationError
     try:
         from pypy.rlib._rffi_stacklet import switch, thread_handle, handle
 
     rtyper = support.annotate(f, [])
     jitdriver_sd = FakeJitDriverSD(rtyper.annotator.translator.graphs[0])
-    cc = CallControl(LLtypeCPU(rtyper), jitdrivers_sd=[jitdriver_sd])
+    cc = CallControl(LLGraphCPU(rtyper), jitdrivers_sd=[jitdriver_sd])
     res = cc.find_all_graphs(FakePolicy())
 
     [f_graph] = [x for x in res if x.func is f]