pytest-check 2.8.0
https://github.com/okken/pytest-check/releases/tag/2.8.0
check helper functions, check.equal(), etc., now support an optional xfail string to allow check failures to result in xfail instead of fail on a non-xfail marked test
And we’re temporarily at 0 open issues and 0 PRs
#Python #pytest
Release 2.8.0 · okken/pytest-check

Support Request #122: Feature proposal: Capability to mark checks as xfail Allow check helper functions, including raises(), to accept an xfail reason. A failing check can now produce an xfailed te...

GitHub
Decided to not support xpass if the test isn’t marked xfail, mostly for speed reasons, it would slightly slow down the common case of passing checks. May revisit decision in the future.