You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test.py --time throws TypeError: a float is required #20341
Platform: Windows, Linux x64 (haven't tried others yet)
Subsystem: tools
I'm getting an error when using the --time option for test.py:
e.g.,
$ ./tools/test.py --time test/parallel/test-module-loading-globalpaths
[00:02|% 100|+ 1|- 0]: Done
--- Total time: 00:02.244 ---
Traceback (most recent call last):
File "./tools/test.py", line 1760, in <module>
sys.exit(Main())
File "./tools/test.py", line 1752, in Main
t = FormatTime(entry.duration)
File "./tools/test.py", line 1531, in FormatTime
millis = round(d * 1000) % 1000
TypeError: a float is required
Activity
richardlau commentedon Apr 27, 2018
Fix in #20368.
tools: fix TypeError from `test.py --time`
tools: fix TypeError from `test.py --time`
tools: fix TypeError from `test.py --time`
tools: fix TypeError from `test.py --time`