File tree Expand file tree Collapse file tree 3 files changed +8
-12
lines changed Expand file tree Collapse file tree 3 files changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -259,7 +259,10 @@ time or change existing behaviors in order to make them less surprising/more use
259
259
260
260
* Add stderr write for ``pytest.exit(msg) `` during startup. Previously the message was never shown.
261
261
Thanks `@BeyondEvil `_ for reporting `#1210 `_. Thanks to `@JonathonSonesen `_ and
262
- `@tomviner `_ for PR.
262
+ `@tomviner `_ for the PR.
263
+
264
+ * fix `#1372 `_ no longer display the incorrect test deselection reason,
265
+ thanks `@ronnypfannschmidt `_ for the PR.
263
266
264
267
*
265
268
@@ -311,6 +314,7 @@ time or change existing behaviors in order to make them less surprising/more use
311
314
.. _#1210 : https://github.com/pytest-dev/pytest/issues/1210
312
315
.. _#1235 : https://github.com/pytest-dev/pytest/issues/1235
313
316
.. _#1351 : https://github.com/pytest-dev/pytest/issues/1351
317
+ .. _#1372 : https://github.com/pytest-dev/pytest/issues/1372
314
318
.. _#1421 : https://github.com/pytest-dev/pytest/issues/1421
315
319
.. _#1426 : https://github.com/pytest-dev/pytest/issues/1426
316
320
.. _#1428 : https://github.com/pytest-dev/pytest/pull/1428
Original file line number Diff line number Diff line change @@ -512,16 +512,8 @@ def summary_stats(self):
512
512
513
513
def summary_deselected (self ):
514
514
if 'deselected' in self .stats :
515
- l = []
516
- k = self .config .option .keyword
517
- if k :
518
- l .append ("-k%s" % k )
519
- m = self .config .option .markexpr
520
- if m :
521
- l .append ("-m %r" % m )
522
- if l :
523
- self .write_sep ("=" , "%d tests deselected by %r" % (
524
- len (self .stats ['deselected' ]), " " .join (l )), bold = True )
515
+ self .write_sep ("=" , "%d tests deselected" % (
516
+ len (self .stats ['deselected' ])), bold = True )
525
517
526
518
def repr_pythonversion (v = None ):
527
519
if v is None :
Original file line number Diff line number Diff line change @@ -384,7 +384,7 @@ def test_three():
384
384
result = testdir .runpytest ("-k" , "test_two:" , testpath )
385
385
result .stdout .fnmatch_lines ([
386
386
"*test_deselected.py .." ,
387
- "=* 1 test*deselected by*test_two: *=" ,
387
+ "=* 1 test*deselected *=" ,
388
388
])
389
389
assert result .ret == 0
390
390
You can’t perform that action at this time.
0 commit comments