Remove try/finally block
http://pytest.org/dev/yieldfixture.html With pytest fixture functions, the “after yield” part will always be invoked, independently from the exception status of the test function which uses the fixture.
Showing
想要评论请 注册 或 登录