aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/wpt/grouping_formatter.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/wpt/grouping_formatter.py b/tests/wpt/grouping_formatter.py
index 2b6623a146f..43df1cd259b 100644
--- a/tests/wpt/grouping_formatter.py
+++ b/tests/wpt/grouping_formatter.py
@@ -57,7 +57,7 @@ class GroupingFormatter(base.BaseFormatter):
try:
self.terminal = blessings.Terminal()
- return self.terminal.clear_eol, self.terminal.move_up
+ return self.terminal.move_up, self.terminal.clear_eol
except Exception as exception:
sys.stderr.write("GroupingFormatter: Could not get terminal "
"control characters: %s\n" % exception)
@@ -67,7 +67,7 @@ class GroupingFormatter(base.BaseFormatter):
if not self.interactive or not self.current_display:
return ""
return ((self.move_up + self.clear_eol) *
- len(self.current_display.splitlines()))
+ self.current_display.count('\n'))
def generate_output(self, text=None, new_display=None):
if not self.interactive: