PyTest - Markers
You want to mark a test that should be skipped on Windows and expected to fail on Python versions below 3.7. Which is the correct way to combine
skipif and xfail markers?skipif and xfail markers?skipif for Windows must be applied first.xfail marker is applied second to mark expected failures on old Python versions.skipif first, then xfail, both with reasons. This is the correct and clear approach.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions