diff options
author | Richard Lau <riclau@uk.ibm.com> | 2019-03-30 02:18:26 -0400 |
---|---|---|
committer | Richard Lau <riclau@uk.ibm.com> | 2019-04-02 08:34:23 -0400 |
commit | 8bfce89926fdfdc8680afcf8b4ebf88ea99b94e5 (patch) | |
tree | e17dbcd6b1ec8bdc1fd8372fac68c0add1b6ec0a /tools/test.py | |
parent | 5583d4d73ef750b27c9068ea0f05fae0de9f7766 (diff) | |
download | android-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-x | tools/test.py | 2 |
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) |