diff --git a/doc/en/fixture.rst b/doc/en/fixture.rst index 51c5d6af3..9641d6aac 100644 --- a/doc/en/fixture.rst +++ b/doc/en/fixture.rst @@ -253,7 +253,7 @@ the code after the *yield* statement serves as the teardown code: import pytest @pytest.fixture(scope="module") - def smtp(request): + def smtp(): smtp = smtplib.SMTP("smtp.gmail.com") yield smtp # provide the fixture value print("teardown smtp")