Skip to content

Commit 3815046

Browse files
committed
[docs] Link to auto mode concept from marker reference.
Signed-off-by: Michael Seifert <[email protected]>
1 parent 7c04350 commit 3815046

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/source/reference/markers/index.rst

+3-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Multiple async tests in a single class or module can be marked using |pytestmark
1515
.. include:: function_scoped_loop_pytestmark_strict_mode_example.py
1616
:code: python
1717

18-
The ``pytest.mark.asyncio`` marker can be omitted entirely in *auto* mode, where the *asyncio* marker is added automatically to *async* test functions.
18+
The ``pytest.mark.asyncio`` marker can be omitted entirely in |auto mode|_ where the *asyncio* marker is added automatically to *async* test functions.
1919

2020
By default, each test runs in it's own asyncio event loop.
2121
Multiple tests can share the same event loop by providing a *scope* keyword argument to the *asyncio* mark.
@@ -37,5 +37,7 @@ Package-scoped loops do not work in `namespace packages. <https://docs.python.or
3737
Subpackages do not share the loop with their parent package.
3838

3939

40+
.. |auto mode| replace:: *auto mode*
41+
.. _auto mode: ../../concepts.html#auto-mode
4042
.. |pytestmark| replace:: ``pytestmark``
4143
.. _pytestmark: http://doc.pytest.org/en/latest/example/markers.html#marking-whole-classes-or-modules

0 commit comments

Comments
 (0)