Update fixture.rst

Remove yet another not needed `request` argument in fixture definition.
This commit is contained in:
Krzysztof Szularz 2017-04-26 10:31:53 +02:00 committed by GitHub
parent a9b44c4529
commit f0533194ed
1 changed files with 1 additions and 1 deletions

View File

@ -253,7 +253,7 @@ the code after the *yield* statement serves as the teardown code:
import pytest import pytest
@pytest.fixture(scope="module") @pytest.fixture(scope="module")
def smtp(request): def smtp():
smtp = smtplib.SMTP("smtp.gmail.com") smtp = smtplib.SMTP("smtp.gmail.com")
yield smtp # provide the fixture value yield smtp # provide the fixture value
print("teardown smtp") print("teardown smtp")