Skip to content

marker transfer incompatible with inheritance #535

Description

@pytestbot

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


Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: marksrelated to marks, either the general marks or builtintype: bugproblem that needs to be addressed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions