From 7a271a91b09e39889775bbc94718d7fb023a1bfa Mon Sep 17 00:00:00 2001 From: Jeffrey Rackauckas Date: Sat, 13 Oct 2018 12:55:17 -0700 Subject: [PATCH] Fix rounding error when displaying durations in non-verbose mode. --- src/_pytest/runner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_pytest/runner.py b/src/_pytest/runner.py index f01b06314..654bd4f22 100644 --- a/src/_pytest/runner.py +++ b/src/_pytest/runner.py @@ -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("::()::", "::")