We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 61b4f7a commit a811765Copy full SHA for a811765
src/_pytest/runner.py
@@ -94,15 +94,11 @@ def pytest_terminal_summary(terminalreporter: TerminalReporter) -> None:
94
for i, rep in enumerate(dlist):
95
if rep.duration < durations_min:
96
tr.write_line("")
97
- tr.write_line(
98
- f"({len(dlist) - i} durations < {durations_min:g}s hidden."
99
- + (
100
- " Use -vv to show these durations."
101
- if terminalreporter.config.option.durations_min is None
102
- else ""
103
- )
104
- + ")"
105
+ message = f"({len(dlist) - i} durations < {durations_min:g}s hidden."
+ if terminalreporter.config.option.durations_min is None:
+ message += " Use -vv to show these durations."
+ message += ")"
+ tr.write_line(message)
106
break
107
tr.write_line(f"{rep.duration:02.2f}s {rep.when:<8} {rep.nodeid}")
108
0 commit comments