Skip to content

Conversation

@patchback
Copy link

@patchback patchback bot commented Jan 17, 2026

This is a backport of PR #14113 as merged into main (6d0aff1).


Summary

This PR clarifies the difference between -p and PYTEST_PLUGINS in the plugin documentation and fixes an incorrect command example.

Details

  • Fixes the incorrect example pytest --disable-plugin-autoload -p NAME,NAME2
    → replaced with the correct repeated form -p NAME -p NAME2
  • Clarifies the different use-cases:
    • -p early-loads (or disables) a plugin by name or entry point for a single invocation
    • PYTEST_PLUGINS loads plugin modules during startup, commonly used when testing plugins
  • Adds guidance to avoid duplicate plugin registration when plugin autoloading is disabled
  • Adds concrete examples for both mechanisms

closes #13388
Changelog: not needed (documentation-only change).

@nicoddemus nicoddemus merged commit 54f2b3f into 9.0.x Jan 17, 2026
33 checks passed
@nicoddemus nicoddemus deleted the patchback/backports/9.0.x/6d0aff14ef1aea1636b543c173124a18e61772ee/pr-14113 branch January 17, 2026 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants