only print selected if any have been selected

This commit is contained in:
Kristoffer Nordstroem 2019-01-24 00:00:29 +01:00
parent 9f86e83478
commit 8723eb16ea
1 changed files with 1 additions and 1 deletions

View File

@ -511,7 +511,7 @@ class TerminalReporter(object):
line += " / %d deselected" % deselected
if skipped:
line += " / %d skipped" % skipped
if self._numcollected > selected:
if self._numcollected > selected > 0:
line += " / %d selected" % selected
if self.isatty:
self.rewrite(line, bold=True, erase=True)