Skip to content

"plugin discovery order" incorrectly documented #7691

Closed

Description

@mcow

Documentation of "plugin discovery order" states that setuptools-entry-point plugins are loaded before plugins specified with -p on the command line. This is incorrect, the command line plugins are loaded "early" (as is documented elsewhere).

I would argue that a late-loading command-line option would be useful, but that's a different issue.

Activity

  1. graingert commented on Aug 26, 2020

    @graingert
    Member

    Could probably do with being an <ol> rather than an <ul> in the docs

  2. RonnyPfannschmidt commented on Aug 26, 2020

    @RonnyPfannschmidt
    Member

    I recall a Bugfix wrt disabling setuptools plugins correctly, im on mobile atm and can't effectively search it

  3. added
    type: docs
    on Aug 27, 2020
  4. nicoddemus commented on Sep 12, 2020

    @nicoddemus
    Member

    Indeed -p are early loaded:

    self.pluginmanager.consider_preparse(args, exclude_only=False)
    if not os.environ.get("PYTEST_DISABLE_PLUGIN_AUTOLOAD"):
    # Don't autoload from setuptools entry point. Only explicitly specified
    # plugins are going to be loaded.
    self.pluginmanager.load_setuptools_entrypoints("pytest11")
    self.pluginmanager.consider_env()

  5. added a commit that references this issue on Sep 12, 2020
    541b30a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: docs

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions