Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions doc/en/explanation/pythonpath.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ these values:
we advocate for using :ref:`src-layouts <src-layout>`.

Same as ``prepend``, requires test module names to be unique when the test directory tree is
not arranged in packages, because the modules will put in :py:data:`sys.modules` after importing.
not arranged in packages, because the modules will be put in :py:data:`sys.modules` after importing.

.. _`import-mode-importlib`:

Expand Down Expand Up @@ -152,7 +152,7 @@ this case ``foo/``). To load the module, it will insert ``root/`` to the front
The same logic applies to the ``conftest.py`` file: it will be imported as ``foo.conftest`` module.

Preserving the full package name is important when tests live in a package to avoid problems
and allow test modules to have duplicated names. This is also discussed in details in
and allow test modules to have duplicated names. This is also discussed in detail in
:ref:`test discovery`.

Standalone test modules / ``conftest.py`` files
Expand Down Expand Up @@ -182,7 +182,7 @@ with the ``conftest.py`` file by adding ``root/foo`` to :py:data:`sys.path` to i
For this reason this layout cannot have test modules with the same name, as they all will be
imported in the global import namespace.

This is also discussed in details in :ref:`test discovery`.
This is also discussed in detail in :ref:`test discovery`.

.. _`pytest vs python -m pytest`:

Expand Down