Fix rounding error when displaying durations in non-verbose mode.

This commit is contained in:
Jeffrey Rackauckas 2018-10-13 12:55:17 -07:00
parent 47f5c29002
commit 7a271a91b0
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ def pytest_terminal_summary(terminalreporter):
dlist = dlist[:durations]
for rep in dlist:
if verbose < 2 and rep.duration < 0.01:
if verbose < 2 and rep.duration < 0.005:
tr.write_line("0.00 durations hidden. Use -vv to show these durations.")
break
nodeid = rep.nodeid.replace("::()::", "::")