Skip to content

Commit

Permalink
Fixed it?
Browse files Browse the repository at this point in the history
  • Loading branch information
CleanCut committed Oct 12, 2020
1 parent c19a14d commit c27809f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions green/result.py
Expand Up @@ -587,19 +587,15 @@ 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
if self.stream.isatty() and terminal_width: # pragma: no cover
cursor_rewind = (
int(ceil(float(len(self.first_text_output)) / terminal_width)) - 1
)
if cursor_rewind:
print("terminal width {}".format(terminal_width))
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 c27809f

Please sign in to comment.