Skip to content

Commit 3ff3070

Browse files
richardlauBethGriggs
authored andcommitted
tools: fix test.py --time
PR-URL: #27007 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Signed-off-by: Beth Griggs <Bethany.Griggs@uk.ibm.com>
1 parent 3e386a7 commit 3ff3070

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
@@ -1511,7 +1511,7 @@ def FormatTime(d):
15111511

15121512

15131513
def FormatTimedelta(td):
1514-
if hasattr(td.total, 'total_seconds'):
1514+
if hasattr(td, 'total_seconds'):
15151515
d = td.total_seconds()
15161516
else: # python2.6 compat
15171517
d = td.seconds + (td.microseconds / 10.0**6)

0 commit comments

Comments
 (0)