def check_strict_xfail(pyfuncitem):
 evalxfail = pyfuncitem._evalxfail
 if evalxfail.istrue():
  strict_default = pyfuncitem.config.getini('xfail_strict')
  is_strict_xfail = evalxfail.get('strict', strict_default)
  if is_strict_xfail:
   del pyfuncitem._evalxfail
   explanation = evalxfail.getexplanation()
   pytest.fail(('[XPASS(strict)] ' + explanation), pytrace=False)

def check_strict_xfail ( pyfuncitem ) : evalxfail = pyfuncitem . _evalxfail if evalxfail . istrue ( ) : strict_default = pyfuncitem . config . getini ( 'xfail_strict' ) is_strict_xfail = evalxfail . get ( 'strict' , strict_default ) if is_strict_xfail : del pyfuncitem . _evalxfail explanation = evalxfail . getexplanation ( ) pytest . fail ( ( '[XPASS(strict)] ' + explanation ) , pytrace = False )
check xfail for the given passing test .