From 3ff3070442478fbd806415315469686e088dd6b0 Mon Sep 17 00:00:00 2001 From: Richard Lau Date: Sat, 30 Mar 2019 02:18:26 -0400 Subject: [PATCH] tools: fix `test.py --time` PR-URL: https://github.com/nodejs/node/pull/27007 Reviewed-By: Luigi Pinca Reviewed-By: Ruben Bridgewater Reviewed-By: Yongsheng Zhang Reviewed-By: Refael Ackermann Reviewed-By: Colin Ihrig Signed-off-by: Beth Griggs --- tools/test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/test.py b/tools/test.py index cb501637b8d524..549908cf38b061 100755 --- a/tools/test.py +++ b/tools/test.py @@ -1511,7 +1511,7 @@ def FormatTime(d): def FormatTimedelta(td): - if hasattr(td.total, 'total_seconds'): + if hasattr(td, 'total_seconds'): d = td.total_seconds() else: # python2.6 compat d = td.seconds + (td.microseconds / 10.0**6)