-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
asyncio shell subprocess does not close properly #100055
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
@knight37x Did you perhaps run a slightly different program than what you pasted above? When I copy-paste that into a file named
When I type the ssh command in the command line, I get an immediate error:
When I replace the ssh command in the program with All this is on macOS, but that should hardly matter. What should I do |
Whoops, famous last words. :-) The issue does appear on Windows with Python 3.10. However, with Python 3.11.1 or 3.12a2+ I get the same The ssh command gives the same error for me on Windows. Can you reduce your example to something that doesn't depend on the behavior of ssh? |
@gvanrossum I found out you can replace that ssh command by e.g. |
That issue is already fixed with #88050. You should try 3.11.1 and current main. |
oh nice! sorry for the noise! |
Environment:
Windows 10, Python 3.9.0
consider this example script:
with process._transport.close() commented (as above) results in the following error:
Expand
with
process._transport.close()
it finishes without an error. but_transport
seems to not be made to be accessed. Is there something I have missed to fix this?See this Stackoverflow where I have found that solution (and decided to create this issue as this seems not intended).
The text was updated successfully, but these errors were encountered: