def pytest_runtest_setup(item):
session = item.parent.parent
sanitycheckfailed = getattr(session, '_sanitycheckfailed', None)
if sanitycheckfailed is not None:
pytest.xfail('previous test failed (%s)' % sanitycheckfailed.name)
评论列表
文章目录