-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Module-level skip no longer works #1885
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
Comments
Are you aware of try:
import some_package
except ImportError:
pytest.skip() do: some_package = pytest.importorskip('some_package') |
We have removed this ability because it was a common error to use
if not SOME_RUNTIME_CONDITION:
pytestmark = pytest.mark.skip(reason='reasons') |
@The-Compiler @nicoddemus |
I used to make use of the ability to invoke
pytest.skip
to skip a whole test file (rather than having to decorate dozens of functions):but am now getting errors with pytest 3.0:
Is there a way to simply skip a whole file instead?
The text was updated successfully, but these errors were encountered: