#3203 Remove progress when no-capture

This commit is contained in:
feuillemorte 2018-02-26 17:19:58 +03:00
parent bedceaacc4
commit 46c5d5355e
2 changed files with 3 additions and 0 deletions

View File

@ -324,6 +324,8 @@ class TerminalReporter(object):
_PROGRESS_LENGTH = len(' [100%]')
def _get_progress_information_message(self):
if self.config.getoption('capture') == 'no':
return ''
collected = self._session.testscollected
if collected:
progress = len(self._progress_nodeids_reported) * 100 // collected

View File

@ -1045,6 +1045,7 @@ class TestProgress(object):
r'test_foo.py \.{5}',
r'test_foobar.py \.{5}',
])
assert "%]" not in output.stdout.str()
class TestProgressWithTeardown(object):