Skip to content

7.0.0 causes a new PytestDeprecationWarning in my plugin, but I'm not sure why... #9613

Answered by bluetech
wimglenn asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @wimglenn,

You got it pretty much correctly - as part of formalizing pytest's public API, we audited ExceptionInfo and RaisesContext, and decided:

  • Expose ExceptionInfo, but mark it's ctor private (so pytest is formally free to break how the type is constructed, but not any public methods/attributes).
  • Don't expose RaisesContext.

My suggestion is to open an issue describing your use case for these, and we can make them public if it makes sense.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@wimglenn
Comment options

wimglenn Feb 6, 2022
Collaborator Author

@RonnyPfannschmidt
Comment options

@bluetech
Comment options

@wimglenn
Comment options

wimglenn Feb 6, 2022
Collaborator Author

@bluetech
Comment options

Answer selected by wimglenn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants