You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be good if there was an easy way to change the event_loop_policy for a single test. I can't see any way to do this currently from the documentation (other than moving a single test to it's own module).
In aiohttp, we currently have these fixtures in conftest.py, which I'm looking to remove:
I'm also linking #1032 which argues that this kind of customization should be possible through the async marker.
For example: @pytest.mark.asyncio(policy=…).
It's also worth mentioning that upstream is deprecating the policy system and looking to remove it entirely: python/cpython#127949
That one seems to just be concerned with sync tests geting executed multiple times.
I'm also linking #1032 which argues that this kind of customization should be possible through the async marker.
For example: @pytest.mark.asyncio(policy=…).
It would be good if there was an easy way to change the event_loop_policy for a single test. I can't see any way to do this currently from the documentation (other than moving a single test to it's own module).
In aiohttp, we currently have these fixtures in conftest.py, which I'm looking to remove:
The text was updated successfully, but these errors were encountered: