New issue 535: marker transfer incompatible with inheritance
https://bitbucket.org/hpk42/pytest/issue/535/marker-transfer-incompatible-with

Ronny Pfannschmidt:

when a method is inherited, markers will trasnfer from the subclass to the 
superclass


```
#!python


import pytest

class TestAClass(object):

    def test_something(self):
        assert True

@pytest.mark.skipif("True")
class TestBClass(TestAClass):
    pass

class TestCClass(TestAClass):
    pass

```
will skip in TestCClass (given by tradej on irc)

im not yet sure if there is a clear backward-compatible way to solve this


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

Reply via email to