pytest.mark.fun(SomeClass) returns SomeClass with the mark applied instead of a marker #2540
Labels
topic: marks
related to marks, either the general marks or builtin
type: backward compatibility
might present some backward compatibility issues which should be carefully noted in the changelog
type: bug
problem that needs to be addressed
type: enhancement
new feature or API change, should be merged into features branch
type: feature-branch
new feature or API change, should be merged into features branch
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 markand due to python, that means it cant actually be used as decorator anymore due to double call
The text was updated successfully, but these errors were encountered: