Skip to content

markers stains on all related classes #568

Closed
@pytestbot

Description

@pytestbot

Originally reported by: Markus Unterwaditzer (BitBucket: untitaker, GitHub: untitaker)


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.


Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: collectionrelated to the collection phasetopic: 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