Skip to content

pytest.mark.fun(SomeClass) returns SomeClass with the mark applied instead of a marker #2540

@RonnyPfannschmidt

Description

@RonnyPfannschmidt

due to the dual api nature of marks, even for non-test-classes its necessary to use pytest.mark.foo()(SomeClass) instead of just the mark

and due to python, that means it cant actually be used as decorator anymore due to double call

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: marksrelated to marks, either the general marks or builtintype: backward compatibilitymight present some backward compatibility issues which should be carefully noted in the changelogtype: bugproblem that needs to be addressedtype: enhancementnew feature or API change, should be merged into features branchtype: feature-branchnew feature or API change, should be merged into features branch

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions