docs: Fix wrong statement about sys.modules with importlib import mode (#12985)

Follow-up to #7870, see #12983.
This commit is contained in:
Florian Bruhin 2024-11-25 12:29:01 +00:00 committed by GitHub
parent 76e0444770
commit 2157caf879
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -210,8 +210,8 @@ Note that this layout also works in conjunction with the ``src`` layout mentione
to avoid surprises such as a test module getting imported twice.
With ``--import-mode=importlib`` things are less convoluted because
pytest doesn't need to change ``sys.path`` or ``sys.modules``, making things
much less surprising.
pytest doesn't need to change ``sys.path``, making things much less
surprising.
.. _which-import-mode: