def check_strict_xfail(pyfuncitem):
evalxfail = pyfuncitem._evalxfail<EOL>if evalxfail.istrue():<EOL><INDENT>strict_default = pyfuncitem.config.getini("<STR_LIT>")<EOL>is_strict_xfail = evalxfail.get("<STR_LIT:strict>", strict_default)<EOL>if is_strict_xfail:<EOL><INDENT>del pyfuncitem._evalxfail<EOL>explanation = evalxfail.getexplanation()<EOL>fail("<STR_LIT>" + explanation, pytrace=False)<EOL><DEDENT><DEDENT>
check xfail(strict=True) for the given PASSING test