Fix rounding error when displaying durations in non-verbose mode.
This commit is contained in:
parent
47f5c29002
commit
7a271a91b0
|
@ -50,7 +50,7 @@ def pytest_terminal_summary(terminalreporter):
|
||||||
dlist = dlist[:durations]
|
dlist = dlist[:durations]
|
||||||
|
|
||||||
for rep in dlist:
|
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.")
|
tr.write_line("0.00 durations hidden. Use -vv to show these durations.")
|
||||||
break
|
break
|
||||||
nodeid = rep.nodeid.replace("::()::", "::")
|
nodeid = rep.nodeid.replace("::()::", "::")
|
||||||
|
|
Loading…
Reference in New Issue