From a9608d54e0c8db747abe02644415d95fbd75e441 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Thu, 26 Dec 2019 08:19:11 -0300 Subject: [PATCH] Switch the order of the commands back and update the text As suggested during review --- doc/en/pythonpath.rst | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/doc/en/pythonpath.rst b/doc/en/pythonpath.rst index 65f7b51c8..f2c86fab9 100644 --- a/doc/en/pythonpath.rst +++ b/doc/en/pythonpath.rst @@ -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`.