Skip to content
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

Test failure regarding pytest 7.2.0 update #3207

Closed
ryanking13 opened this issue Oct 26, 2022 · 2 comments
Closed

Test failure regarding pytest 7.2.0 update #3207

ryanking13 opened this issue Oct 26, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@ryanking13
Copy link
Member

ryanking13 commented Oct 26, 2022

Recent pytest 7.2.0 update dropped py dependency (pytest-dev/pytest#10396).
And it seems like quite a lot of pytest-* plugins were using py package without installing it explicitly.

This is causing some errors in our CI (1, 2).

A hotfix would be pinning pytest version < 7.2. But I guess plugin devs will soon make a release with a fix (pytest-benchmark already did), or we can ask them to add py as a dependency.

@The-Compiler
Copy link

FYI, I opened a PR against pytest-mypy-plugins visible in that first CI log: typeddjango/pytest-mypy-plugins#106

As a workaround, you could also add py to your own dependencies temporarily, until the plugins are fixed.

@ryanking13
Copy link
Member Author

Thanks a lot @The-Compiler!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants