You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After fixing the bug where an empty list would be returned if there were
not enough lines before the cursor line in the file, another bug was
revealed by the test suite: we've been calling `linecache.getlines()`
even for the root node. That's only noticeable in the test suite because
we mock the return value from that function. In a real run of the
tree reporter, we call `linecache.getlines()` with an empty string as
the file name, and it always returns an empty list in that case.
Still, better to fix this to recognize the root node and not attempt to
fetch lines for it at all.
Signed-off-by: Matt Wozniski <[email protected]>
0 commit comments