-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
topic: marksrelated to marks, either the general marks or builtinrelated to marks, either the general marks or builtintype: bugproblem that needs to be addressedproblem that needs to be addressed
Description
Originally reported by: Ronny Pfannschmidt (BitBucket: RonnyPfannschmidt, GitHub: RonnyPfannschmidt)
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
topic: marksrelated to marks, either the general marks or builtinrelated to marks, either the general marks or builtintype: bugproblem that needs to be addressedproblem that needs to be addressed