[Pytest-commit] Issue #568: skipif marker stains on all related classes (hpk42/pytest)

Markus Unterwaditzer issues-reply at bitbucket.org
Sat Aug 23 01:41:13 CEST 2014


New issue 568: skipif marker stains on all related classes
https://bitbucket.org/hpk42/pytest/issue/568/skipif-marker-stains-on-all-related

Markus Unterwaditzer:

Given this class hierarchy:

    import pytest

    class Foo(object):
        def test_lol(self):
            pass

    @pytest.mark.skipif(False, reason='BECAUSE')
    class TestBar(Foo):
        pass

    @pytest.mark.skipif(True, reason='BECAUSE')
    class TestBaz(Foo):
        pass

py.test will skip the single testcase of both TestBar and TestBaz.




More information about the pytest-commit mailing list