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.


_______________________________________________
pytest-commit mailing list
pytest-commit@python.org
https://mail.python.org/mailman/listinfo/pytest-commit

Reply via email to