-
Notifications
You must be signed in to change notification settings - Fork 24
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
[35] Support async/await fixtures #37
[35] Support async/await fixtures #37
Conversation
Redo of pytest-dev#35 but straight off of master
Does not support |
Also, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:LGTM:
(caveat: I've just read the code, not tried it myself yet..)
@altendky Hmm, why does asyncio insist on function-scoped async fixtures...? |
@meejah, my apologies. It was Trio that only has function scoped fixtures. They have no global reactor and start a new one (so to speak) for each test. It seems that asyncio does support all fixture scopes. https://github.com/pytest-dev/pytest-asyncio#async-fixtures |
It doesn't seem like async fixture scope needs to be be restricted to just |
Okay, yeah from my perspective at least having all scopes would be best :) I wonder if this should ape asyncio with a I guess I'm asking: if |
As I recall, |
Ah, okay, ignore that thought for this PR, then. |
Redo of #36 but straight off of master
WIP for:
Actual timeout for concurrent teardown testProper ordering of fixture setup and teardown including inter-fixture dependencies