Skip to content

Marks don't pick up nested classes #199

Closed
@pytestbot

Description

@pytestbot

Originally reported by: Anonymous


example:

#!python

@pytest.mark.a
class TestA:
    def test_b(self):
        assert True
    class TestC:
        def test_d(self):
            assert True

#!bash

$ py.test example.py -m a

only test_b is run. Not test_d


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