Skip to content

Commit 4cdb708

Browse files
Merge pull request #13870 from sazsu/pythonpath-doc-fix (#13871)
docs: fix mistakes in explanation/pythonpath (cherry picked from commit 2b285f5) Co-authored-by: Ran Benita <[email protected]>
1 parent e29eebf commit 4cdb708

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/en/explanation/pythonpath.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ these values:
4949
we advocate for using :ref:`src-layouts <src-layout>`.
5050

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

5454
.. _`import-mode-importlib`:
5555

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

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

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

185-
This is also discussed in details in :ref:`test discovery`.
185+
This is also discussed in detail in :ref:`test discovery`.
186186

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

0 commit comments

Comments
 (0)