Commits

Maciej Fijalkowski committed f38cc28

I think fix pretty essential bug - display stuff that does not start on
the specific line, but is actually there anyway (and not only debug_merge_point)

  • Participants
  • Parent commits 4958ca8

Comments (0)

Files changed (3)

                 lineno = chunk.lineno
                 minline = min(minline, lineno)
                 maxline = max(maxline, lineno)
-                if chunk.line_starts_here:
+                if chunk.line_starts_here or len(chunk.operations) > 1:
                     self._lineset.add(lineno)
         if minline == sys.maxint:
             minline = 0

File test/test_loops.py

     assert res.linerange == (7, 9)
     assert res.lineset == set([7, 8, 9])
 
+def test_linerange_notstarts():
+    # XXX
+    pass
+
 def test_reassign_loops():
     main = parse('''
     [v0]
     while i < 10:
         a = 'foo'
         i += 1
+
+def h():
+    [x for x in range(10)]