-
Notifications
You must be signed in to change notification settings - Fork 586
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix pytest>=7.0.0 deprecation warnigs #3223
Fix pytest>=7.0.0 deprecation warnigs #3223
Conversation
Even though using `_pytest.config.Config` is not deprecated in pytest>=7, this limits all usages of `_pytest` to truly necessary ones.
|
I'm still hitting this after upgrading to hypothesis-6.36.2. Here's an example: It looks like the following code from "hypothesis/internal/escalation.py:140: in format_exception"... is the culprit? |
|
@jab - can you confirm that the patch above fixes this for you? |
|
I think the warning may still be arising? At least when I use I see this with If this is a different bug, I'm happy to open a new issue. |
|
Er, never mind, it's an old version of hypothesis presumably because the machine only has python3.6 on it. |
As discussed in #3222, this fixes the relevant deprecations.
The logic in
escalation.pyis quite convoluted, but I do not know if anyone is using_pytestwithout importingpytest, so to be super safe, I except bothAttributeErrorandKeyError.Cheers,
Libor