-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
Support setting the loop_factory in IsolatedAsyncioTestCase #110774
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
Labels
Comments
gvanrossum
pushed a commit
that referenced
this issue
Oct 31, 2023
…yncioTestCase (#110776) Co-authored-by: Łukasz Langa <lukasz@langa.pl> Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
FullteaR
pushed a commit
to FullteaR/cpython
that referenced
this issue
Nov 3, 2023
…atedAsyncioTestCase (python#110776) Co-authored-by: Łukasz Langa <lukasz@langa.pl> Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
aisk
pushed a commit
to aisk/cpython
that referenced
this issue
Feb 11, 2024
…atedAsyncioTestCase (python#110776) Co-authored-by: Łukasz Langa <lukasz@langa.pl> Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
Glyphack
pushed a commit
to Glyphack/cpython
that referenced
this issue
Sep 2, 2024
…atedAsyncioTestCase (python#110776) Co-authored-by: Łukasz Langa <lukasz@langa.pl> Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Proposal:
I want to be able to create utility subclasses of
IsolatedAsyncioTestCase
that use either uvloop or a specific event loop using theasyncio.Runner(..., loop_factory=...)
kwarg, Ideally it would look something like:Another advantage of setting
loop_factory
would allow use ofIsolatedAsyncioTestCase
without usingdef tearDownModule(): asyncio.set_event_loop_policy(None)
becauseasyncio.Runner
does not callasyncio.get_event_loop_policy()
when called with aloop_factory
or
Has this already been discussed elsewhere?
I have already discussed this feature proposal on Discourse
Links to previous discussion of this feature:
https://discuss.python.org/t/support-setting-the-loop-factory-in-isolatedasynciotestcase/36027
Linked PRs
The text was updated successfully, but these errors were encountered: