How and why I use pytest's xfail February 25, 2022 Articles Paul Ganssle dives into how to use pytest's xfail decorator because sometimes a failing test is a correct outcome.