Skip to content

Commit d7d2249

Browse files
authored
Merge pull request #2378 from szuliq/patch-1
Update docs
2 parents 314d4af + f053319 commit d7d2249

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/en/fixture.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ the code after the *yield* statement serves as the teardown code:
253253
import pytest
254254
255255
@pytest.fixture(scope="module")
256-
def smtp(request):
256+
def smtp():
257257
smtp = smtplib.SMTP("smtp.gmail.com")
258258
yield smtp # provide the fixture value
259259
print("teardown smtp")
@@ -287,7 +287,7 @@ Note that we can also seamlessly use the ``yield`` syntax with ``with`` statemen
287287
import pytest
288288
289289
@pytest.fixture(scope="module")
290-
def smtp(request):
290+
def smtp():
291291
with smtplib.SMTP("smtp.gmail.com") as smtp:
292292
yield smtp # provide the fixture value
293293

0 commit comments

Comments
 (0)