terminal: dont pretend to know the deselection reason

this addresses #1372 - we pretend we know the deselection reason from internal plugins and ignore 3rd party/local reasons
This commit is contained in:
Ronny Pfannschmidt 2016-08-01 13:50:59 +02:00
parent aa145fa83e
commit ac215e9cff
1 changed files with 2 additions and 10 deletions

View File

@ -512,16 +512,8 @@ class TerminalReporter:
def summary_deselected(self):
if 'deselected' in self.stats:
l = []
k = self.config.option.keyword
if k:
l.append("-k%s" % k)
m = self.config.option.markexpr
if m:
l.append("-m %r" % m)
if l:
self.write_sep("=", "%d tests deselected by %r" % (
len(self.stats['deselected']), " ".join(l)), bold=True)
self.write_sep("=", "%d tests deselected" % (
len(self.stats['deselected'])), bold=True)
def repr_pythonversion(v=None):
if v is None: