Skip to content

Commit 3912551

Browse files
richardlauMylesBorins
authored andcommitted
tools: fix TypeError from test.py --time
Calculated durations are timedelta objects but the FormatTime function is expecting a number in seconds. PR-URL: #20368 Fixes: #20341 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
1 parent 658fbdc commit 3912551

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1747,7 +1747,7 @@ def DoSkip(case):
17471747
timed_tests.sort(lambda a, b: a.CompareTime(b))
17481748
index = 1
17491749
for entry in timed_tests[:20]:
1750-
t = FormatTime(entry.duration)
1750+
t = FormatTime(entry.duration.total_seconds())
17511751
sys.stderr.write("%4i (%s) %s\n" % (index, t, entry.GetLabel()))
17521752
index += 1
17531753

0 commit comments

Comments
 (0)