Switch the order of the commands back and update the text

As suggested during review
This commit is contained in:
Bruno Oliveira 2019-12-26 08:19:11 -03:00
parent ed57b8e08a
commit a9608d54e0
1 changed files with 5 additions and 3 deletions

View File

@ -74,9 +74,11 @@ This is also discussed in details in :ref:`test discovery`.
.. _`pytest vs python -m pytest`:
Invoking ``python -m pytest`` versus ``pytest``
Invoking ``pytest`` versus ``python -m pytest``
-----------------------------------------------
Running pytest with ``python -m pytest [...]`` instead of ``pytest [...]`` yields nearly
equivalent behaviour, except that the former call will add the current directory to ``sys.path``.
Running pytest with ``pytest [...]`` instead of ``python -m pytest [...]`` yields nearly
equivalent behaviour, except that the latter will add the current directory to ``sys.path``, which
is standard ``python`` behavior.
See also :ref:`cmdline`.