From 857fdc85b08f05fe56973ce669bb70f98ddb753b Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Mon, 3 Nov 2025 23:01:00 +0200 Subject: [PATCH] Merge pull request #13870 from sazsu/pythonpath-doc-fix docs: fix mistakes in explanation/pythonpath (cherry picked from commit 2b285f5c8a44ec8d481b9d1a8c17c73a4d08a4a3) --- doc/en/explanation/pythonpath.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/en/explanation/pythonpath.rst b/doc/en/explanation/pythonpath.rst index e68f455cedf..91e313ebb02 100644 --- a/doc/en/explanation/pythonpath.rst +++ b/doc/en/explanation/pythonpath.rst @@ -49,7 +49,7 @@ these values: we advocate for using :ref:`src-layouts `. 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`: @@ -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 @@ -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`: