Skip to content

Commit

Permalink
More weird debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
CleanCut committed Oct 12, 2020
1 parent 56a6ef0 commit 91cb6a3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions green/result.py
Expand Up @@ -587,15 +587,19 @@ def _reportOutcome(self, test, outcome_char, color_func, err=None, reason=""):
self.stream.write(self.colors.start_of_line())
# Can end up being different from the first time due to subtest
# information only being available after a test result comes in.
print(1)
second_text_output = self.stream.formatLine(
test.getDescription(self.verbose), indent=2, outcome_char=outcome_char
)
print(2)
if terminal_width: # pragma: no cover
cursor_rewind = (
int(ceil(float(len(self.first_text_output)) / terminal_width)) - 1
)
if cursor_rewind:
print(3)
self.stream.write(self.colors.up(cursor_rewind))
print(4)
self.stream.write(color_func(second_text_output))
if reason:
self.stream.write(color_func(" -- " + reason))
Expand Down

0 comments on commit 91cb6a3

Please sign in to comment.