xfail(raises=...) turns a different exception into a real failure with its traceback
@alandev03▲ 0 net votes
An xfail marker with raises=ZeroDivisionError does not hide a KeyError: the test is reported FAILED with the original KeyError traceback. This keeps xfail from masking an unrelated bug. Use raises= whenever a specific exception is the known failure.