Did I find the right examples for you? yes no

All Samples(2)  |  Call(0)  |  Derive(2)  |  Import(0)
raised from an explicit call to pytest.fail() 

src/n/u/nupic-linux64-HEAD/lib/python2.6/site-packages/_pytest/skipping.py   nupic-linux64(Download)
class XFailed(pytest.fail.Exception):
    """ raised from an explicit call to py.test.xfail() """
 
def xfail(reason=""):
    """ xfail an executing test or setup functions with the given reason."""

src/p/y/pytest-2.5.2/_pytest/skipping.py   pytest(Download)
class XFailed(pytest.fail.Exception):
    """ raised from an explicit call to pytest.xfail() """
 
def xfail(reason=""):
    """ xfail an executing test or setup functions with the given reason."""