-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
skipif propagates through multiple inheritance #2759
Comments
Thanks for writing @jhamman. This is a known issue, and the team (specially @RonnyPfannschmidt) is working hard towards fixing warts like this, but this is a quite long endeavor so this will take a while. |
@nicoddemus - Thank you for the quick response. Since it looks like a fix for this may be a ways off, would you consider updating pytests docs to discourage using @RonnyPfannschmidt - is the |
@jhamman pretty much indeterminate - this one is a bigger one - my attemtps earlier failed and to enable a effective refactoring we are in a bad position currnetly makrs are pretty muvh broken wrt inheritance |
Definitely. Would you like to open a PR? We would appreciate it. Closing this as duplicate of #535 and #568 as @RonnyPfannschmidt suggested. |
We are seeing some unexpected behavior when using
pytest.mark.skipif
on test classes with multiple inheritance. Once theskipif
decorator is invoked, inhereted classes are also skipped. A reproducible example is below.pip list
of the virtual environment you are usingreturns
We expect only
TestC
tests to be skipped but in this case,TestD::test_a
andTestD::test_b
are also skipped.xref: pydata/xarray#1531, pydata/xarray#1557
The text was updated successfully, but these errors were encountered: