We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 314d4af + f053319 commit d7d2249Copy full SHA for d7d2249
doc/en/fixture.rst
@@ -253,7 +253,7 @@ the code after the *yield* statement serves as the teardown code:
253
import pytest
254
255
@pytest.fixture(scope="module")
256
- def smtp(request):
+ def smtp():
257
smtp = smtplib.SMTP("smtp.gmail.com")
258
yield smtp # provide the fixture value
259
print("teardown smtp")
@@ -287,7 +287,7 @@ Note that we can also seamlessly use the ``yield`` syntax with ``with`` statemen
287
288
289
290
291
with smtplib.SMTP("smtp.gmail.com") as smtp:
292
293
0 commit comments