summaryrefslogtreecommitdiff
path: root/tools/test.py
diff options
context:
space:
mode:
authorRichard Lau <riclau@uk.ibm.com>2019-03-30 02:18:26 -0400
committerRichard Lau <riclau@uk.ibm.com>2019-04-02 08:34:23 -0400
commit8bfce89926fdfdc8680afcf8b4ebf88ea99b94e5 (patch)
treee17dbcd6b1ec8bdc1fd8372fac68c0add1b6ec0a /tools/test.py
parent5583d4d73ef750b27c9068ea0f05fae0de9f7766 (diff)
downloadandroid-node-v8-8bfce89926fdfdc8680afcf8b4ebf88ea99b94e5.tar.gz
android-node-v8-8bfce89926fdfdc8680afcf8b4ebf88ea99b94e5.tar.bz2
android-node-v8-8bfce89926fdfdc8680afcf8b4ebf88ea99b94e5.zip
tools: fix `test.py --time`
PR-URL: https://github.com/nodejs/node/pull/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>
Diffstat (limited to 'tools/test.py')
-rwxr-xr-xtools/test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/test.py b/tools/test.py
index cb501637b8..549908cf38 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)