Skip to content

Commit b541721

Browse files
docs: Fix wrong statement about sys.modules with importlib import mode (#12985) (#12991)
Follow-up to #7870, see #12983. (cherry picked from commit 2157caf) Co-authored-by: Florian Bruhin <[email protected]>
1 parent 16cb87b commit b541721

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/en/explanation/goodpractices.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,8 @@ Note that this layout also works in conjunction with the ``src`` layout mentione
210210
to avoid surprises such as a test module getting imported twice.
211211

212212
With ``--import-mode=importlib`` things are less convoluted because
213-
pytest doesn't need to change ``sys.path`` or ``sys.modules``, making things
214-
much less surprising.
213+
pytest doesn't need to change ``sys.path``, making things much less
214+
surprising.
215215

216216

217217
.. _which-import-mode:

0 commit comments

Comments
 (0)