Skip to content

Skip report refers to skipping plugin when using skipif marker #114

Description

@pytestbot

Originally reported by: Floris Bruynooghe (BitBucket: flub, GitHub: flub)


When using pytest.mark.skipif and asking for skip reports the skipping plugin gets referred, e.g.:

import pytest

@pytest.mark.skipif('True', reason='reason1')
def test():
    pass

def test2():
    pytest.skip('reason2')
$ python /home/flub/Projects/py/pytest/pytest.py -rs test.py
============================= test session starts ==============================
platform linux2 -- Python 2.7.2 -- pytest-2.2.2.dev6
collected 2 items 

test.py ss
=========================== short test summary info ============================
SKIP [1] /home/flub/Projects/py/pytest/_pytest/skipping.py:118: reason1
SKIP [1] /tmp/sandbox/test.py:10: reason2

========================== 2 skipped in 0.01 seconds ===========================

The first skip description is not very useful, the second is much nicer.


Metadata

Metadata

Assignees

No one assigned

    Labels

    type: enhancementnew feature or API change, should be merged into features branch

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions