Update docs in prol of using yield statements
This commit is contained in:
@@ -4,8 +4,8 @@ import pytest
|
||||
@pytest.fixture("session")
|
||||
def setup(request):
|
||||
setup = CostlySetup()
|
||||
request.addfinalizer(setup.finalize)
|
||||
return setup
|
||||
yield setup
|
||||
setup.finalize()
|
||||
|
||||
class CostlySetup:
|
||||
def __init__(self):
|
||||
|
||||
Reference in New Issue
Block a user