Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add pytest.mark.skip shortcut (Issue #607) #1040
Add a non-conditional skip marker for convenience as requested in Issue #607.
I will also probably be adding another feature which automatically treats
This work is a result of the pyconuk pytest sprint! :)
for pytest.skip/xfail being used in such a way,
the docs certainly need updates
the failures are related to backward compat around twisted trial, i suggest you install twisted in your venv while fixing up the interaction
good initial work :)
FWIW i don't mind pytest.skip detecting if it's used as a decorator and erroring out -- if this can be done safely and doesn't complicate the implementation (pytest.mark is already a bit messy if you ask me). It should not silently behave like a marker, however.
As to if it can be safely done: usually pytest.skip takes a message -- how can you in its function body then safely know if it's used as a decorator?
I'm not a big fan of this... warnings by default don't explicitly state what happened (you must pass
(I just realized that the output of