-
Notifications
You must be signed in to change notification settings - Fork 39
Refactored scope handling in pytest 7 #241
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
Comments
smarie
pushed a commit
that referenced
this issue
Jan 3, 2022
…and `callspec._arg2scopenum` are now `fixdef._scope` and `callspec._arg2scope` and contain a `Scope`. Sorting of fixture defs is now done according to the reversed order of Scope enum instances. Not yet tested with pytest-7.0.0rc1. (hopefully) Fixed #241
Merged
smarie
added a commit
that referenced
this issue
Jan 3, 2022
* Completed fix for #243: now also with cases having parameters or requiring fixtures. Made the test only valid in python 3. * Fixed version flag in develop mode - there was a bug due to the folder refactoring. * Added support for the new Scopes enum in pytest 7: `fixdef.scopenum` and `callspec._arg2scopenum` are now `fixdef._scope` and `callspec._arg2scope` and contain a `Scope`. Sorting of fixture defs is now done according to the reversed order of Scope enum instances. Not yet tested with pytest-7.0.0rc1. (hopefully) Fixed #241 * Changelog 3.6.7 Co-authored-by: Sylvain MARIE <[email protected]>
Thanks @The-Compiler ! I have tried to fix it in a blind way (not being able to grab 7.0.0rc1 from pypi and being extremely lazy), based on the diff. Let me know if 3.6.7 does not fix the issue ! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks to pytest-dev/pytest#9415, we found out that
pytest-cases
breaks with pytest 7.0.0rc1:this is due to this change: pytest-dev/pytest#8913 - looks like scopes are now an enum in a new scope.py.
The text was updated successfully, but these errors were encountered: