diff --git a/doc/en/goodpractices.rst b/doc/en/goodpractices.rst index 0aa0dc97c..4da9d1bca 100644 --- a/doc/en/goodpractices.rst +++ b/doc/en/goodpractices.rst @@ -88,7 +88,7 @@ This has the following benefits: .. note:: - See :ref:`pythonpath` for more information about the difference between calling ``pytest`` and + See :ref:`pytest vs python -m pytest` for more information about the difference between calling ``pytest`` and ``python -m pytest``. Note that using this scheme your test files must have **unique names**, because diff --git a/doc/en/pythonpath.rst b/doc/en/pythonpath.rst index 113c95c30..0054acc59 100644 --- a/doc/en/pythonpath.rst +++ b/doc/en/pythonpath.rst @@ -72,6 +72,8 @@ imported in the global import namespace. This is also discussed in details in :ref:`test discovery`. +.. _`pytest vs python -m pytest`: + Invoking ``pytest`` versus ``python -m pytest`` -----------------------------------------------