Skip to content

Commit 526f4a9

Browse files
Merge pull request #4735 from kohr-h/pytest_plugins_module_name
Mention that `pytest_plugins` should not be used as module name
2 parents 2f08350 + 7445b53 commit 526f4a9

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

changelog/3899.doc.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add note to ``plugins.rst`` that ``pytest_plugins`` should not be used as a name for a user module containing plugins.

doc/en/plugins.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,11 @@ will be loaded as well.
8484
:ref:`full explanation <requiring plugins in non-root conftests>`
8585
in the Writing plugins section.
8686

87+
.. note::
88+
The name ``pytest_plugins`` is reserved and should not be used as a
89+
name for a custom plugin module.
90+
91+
8792
.. _`findpluginname`:
8893

8994
Finding out which plugins are active

0 commit comments

Comments
 (0)