Skip to content

Compare registered plugins by identity - #773

Closed
anon5376 wants to merge 1 commit into
pytest-dev:mainfrom
anon5376:codex/plugin-identity
Closed

anon5376 wants to merge 1 commit into
pytest-dev:mainfrom
anon5376:codex/plugin-identity

Conversation

@anon5376

Copy link
Copy Markdown

Use identity for plugin registration, membership/name lookup, and hook removal. Equal-valued instances can register separately; unregistering one preserves the other's hooks.

Fixes #760. Thanks @RonnyPfannschmidt for the report.

Tests: 224 pass on macOS/Python 3.14; all pre-commit checks pass.

Keep equal-valued plugin instances distinct during registration, name and
membership lookup, and hook removal. Cover the public lifecycle with dataclass
plugins and retain duplicate registration checks for the same instance.

Fixes pytest-dev#760
Reported-by: RonnyPfannschmidt (GitHub)
Assisted-by: OpenAI Codex (AI)
Reviewed-by: GPT-6 Luna (AI)
@RonnyPfannschmidt

Copy link
Copy Markdown
Member

Closing as unattended ai

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Plugin registry compares plugins by equality, not identity

2 participants