Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
tools: fix TypeError from test.py --time
Calculated durations are timedelta objects but the FormatTime function
is expecting a number in seconds.
  • Loading branch information
richardlau committed Apr 27, 2018
commit 1fcb189fb89ec179011042d84ec7fc6b7d4ee592
2 changes: 1 addition & 1 deletion tools/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1749,7 +1749,7 @@ def DoSkip(case):
timed_tests.sort(lambda a, b: a.CompareTime(b))
index = 1
for entry in timed_tests[:20]:
t = FormatTime(entry.duration)
t = FormatTime(entry.duration.total_seconds())
sys.stderr.write("%4i (%s) %s\n" % (index, t, entry.GetLabel()))
index += 1

Expand Down