-
Notifications
You must be signed in to change notification settings - Fork 566
Add test for preexec_fn fd double close issue #479
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
Conversation
@graingert may I ask for a review pls? |
Co-authored-by: Thomas Grainger <[email protected]>
asyncio.run(test()) | ||
fut.result() | ||
""") | ||
subprocess.check_call([sys.executable, '-c', script]) |
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.
subprocess.check_call([sys.executable, '-c', script]) | |
subprocess.run([sys.executable, '-c', script], check=True) |
Just doing a eyeball pass at the moment - will do a proper review later. My gut feeling is that I think it's a bit complicated using a thread pool executor and a queue and a pipe and an event so I'll see if I can have a ponder on making this simpler - eg just using threading.Barrier |
import asyncio | ||
import uvloop | ||
|
||
uvloop.install() |
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.
When the 3.11 test suite lands it might be worth conditionally using the modern asyncio.Runner(loop_factory=uvloop.new_event_loop)
ok I think I've managed to simplify this a lot: https://github.com/MagicStack/uvloop/pull/481/files#r924838769 |
Close in favor of #481 |
Refs #466