Skip to content

list_plugin_distinfo() keeps unregistered plugins聽#763

Description

@RonnyPfannschmidt

馃 Written by Claude Opus 5.5 via Claude Code for the pluggy maintainers; I prompted it, it did the work, I read it.

load_setuptools_entrypoints() appends to _plugin_distinfo, but unregister() never removes those entries. After unregistering, list_plugin_distinfo() and list_plugin_distributions() still list the plugin, and that list feeds pytest's "plugins:" header. Re-registering through entry points then adds a duplicate entry.

Confirmed by reading the code and a synthetic repro, not by a real entry-point load.

Proposal: drop the plugin's entries in unregister().

Found while working on #759.

Activity

  1. added 2 commits that reference this issue on Oct 9, 2026
    4ccdac2
    869d940
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions