Skip to content

Commit

Permalink
terminal: dont pretend to know the deselection reason
Browse files Browse the repository at this point in the history
this addresses pytest-dev#1372 - we pretend we know the deselection reason from internal plugins and ignore 3rd party/local reasons
  • Loading branch information
RonnyPfannschmidt committed Aug 1, 2016
1 parent aa145fa commit ac215e9
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions _pytest/terminal.py
Original file line number Diff line number Diff line change
Expand Up @@ -512,16 +512,8 @@ def summary_stats(self):

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:
Expand Down

0 comments on commit ac215e9

Please sign in to comment.