-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
marker transfer incompatible with inheritance #535
Comments
Original comment by BitBucket: tgoodlet, GitHub: tgoodlet: This is particularly painful with the pytest.mark.usefixtures decorator when sibling classes require mutually exclusive dependencies. |
Original comment by BitBucket: tgoodlet, GitHub: tgoodlet: After a decent adventure into the source I've found the guilty method to be The test function which is actually passed to self.makeitem(name, obj) is that from the parent class definition (i.e. This prevents modifcation of this method to simply call makeitem on the instance method... |
fixed in #3317 |
Originally reported by: Ronny Pfannschmidt (BitBucket: RonnyPfannschmidt, GitHub: RonnyPfannschmidt)
when a method is inherited, markers will trasnfer from the subclass to the superclass
will skip in TestCClass (given by tradej on irc)
im not yet sure if there is a clear backward-compatible way to solve this
The text was updated successfully, but these errors were encountered: