Commits

Maciej Fijalkowski committed 0a95a01

fix test_compile

Comments (0)

Files changed (1)

rpython/jit/metainterp/test/test_compile.py

 from rpython.jit.metainterp.optimizeopt import ALL_OPTS_DICT
 
 class FakeCPU(object):
+    class tracker:
+        pass
+    
     ts = typesystem.llhelper
     def __init__(self):
         self.seen = []
     metainterp.history = History()
     metainterp.history.operations = loop.operations[:-1]
     metainterp.history.inputargs = loop.inputargs[:]
-    cpu._all_size_descrs_with_vtable = (
-        LLtypeMixin.cpu._all_size_descrs_with_vtable)
+    cpu.tracker._all_size_descrs_with_vtable = (
+        LLtypeMixin.cpu.tracker._all_size_descrs_with_vtable)
     #
     greenkey = 'faked'
     target_token = compile_loop(metainterp, greenkey, 0,