1. Pypy
  2. Untitled project
  3. jitviewer

Commits

Antonio Cuni  committed 11d152e

fix test

  • Participants
  • Parent commits 6ab7104
  • Branches default

Comments (0)

Files changed (2)

File display.py

View file
  • Ignore whitespace
     """ A representation of a single code object suitable for display
     """
     def __init__(self, source, code, loop):
-        #startline, endline = loop.linerange
         lineset = loop.lineset
         self.lines = []
         self.firstlineno = code.co_firstlineno

File test/test_display.py

View file
  • Ignore whitespace
     loop.chunks = [MockChunk([], 3), MockChunk([Op('a'), Op('b'), Op('c')], 4),
                    MockChunk([Op('a'), Op('b')], 4)]
     MockLoop.linerange = (4, 5)
+    MockLoop.lineset = set([4, 5])
     code = MockCode()
     code.co_firstlineno = 3
     repr = CodeRepr(SOURCE, code, loop)