matplotlib / matplotlib/pytest-mpl

Upgrade to new-style hook wrappers

Open
#216 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
272
Forks
53
PR merge metrics
No merged PRs in 30d

Description

Pytest 8 will use the [new-style hook wrappers](https://pluggy.readthedocs.io/en/stable/#wrappers) so we should add a version check to update the decorator for our `pytest_runtest_call` hooks.

See also: https://github.com/pytest-dev/pytest/issues/11714

Also re-enable the pytestdev test environment.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading the pluggy new-style hook wrapper documentation and the linked pytest issue, then locate the pytest_runtest_call hooks and the pytestdev test environment configuration. Update the decorator handling for the relevant pytest version and confirm that the pytestdev environment is enabled and passes.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.