Skip to content

What is the (intended) way to do plugin based clean up, config._cleanup.append(func) vs pytest_unconfigure? #7992

Discussion options

You must be logged in to vote

we currently have no clear guide for that, and the api currently is not that nice

ideally configure/unconfigure turns into something that gets recorded in the "setupstate" but that refactoring has neither been discussed, nor explored yet

currently in core, using the cleanup is acceptable, plugins have to bite it and use configure/unconfigure

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by symonk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants