Skip to content

Commit f717103

Browse files
committed
terminal: remove unnecessary check in _get_progress_information_message
All calls to _get_progress_information_message are only done for `_show_progress_info`, which is `False` with `capture=no`.
1 parent c7c120f commit f717103

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/_pytest/terminal.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -456,8 +456,6 @@ def pytest_runtest_logfinish(self, nodeid):
456456
self._tw.write(msg + "\n", cyan=True)
457457

458458
def _get_progress_information_message(self):
459-
if self.config.getoption("capture", "no") == "no":
460-
return ""
461459
collected = self._session.testscollected
462460
if self.config.getini("console_output_style") == "count":
463461
if collected:

0 commit comments

Comments
 (0)