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)