Skip to content

Commit 8eaaebe

Browse files
committed
docs: Clarified the effect of pytest.mark.asyncio with regards to the event_loop fixture.
Signed-off-by: Michael Seifert <[email protected]>
1 parent 0698aee commit 8eaaebe

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.rst

+2-3
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,8 @@ event loop. This will take effect even if you're using the
153153
yield loop
154154
loop.close()
155155
156-
If the ``pytest.mark.asyncio`` marker is applied, a pytest hook will
157-
ensure the produced loop is set as the default global loop.
158-
Fixtures depending on the ``event_loop`` fixture can expect the policy to be properly modified when they run.
156+
If the ``pytest.mark.asyncio`` marker is applied to a test function, the ``event_loop``
157+
fixture will be requested automatically by the test function.
159158

160159
``unused_tcp_port``
161160
~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)