-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
gh-123228: don't leak file descriptors in pyrepl test #123302
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
if no f_in and f_out arguments are given, _ReadlineWrapper calls os.dup on fd 0 and 1. Instead, just pass None, because the fds aren't needed anyway in this test
🤖 New build scheduled with the buildbot fleet by @hauntsaninja for commit 20eb346 🤖 If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again. |
🤖 New build scheduled with the buildbot fleet by @hauntsaninja for commit 20eb346 🤖 If you want to schedule another build, you need to add the 🔨 test-with-refleak-buildbots label again. |
ok, the refleak builds worked, the failures look unrelated. @hauntsaninja, I don't know what the usual approach is in such a situation? the commit definitely improves the buildbot situation. |
Let's land it and back port it |
Thanks @cfbolz for the PR, and @pablogsal for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13. |
…-123302) (cherry picked from commit aa90592) Co-authored-by: CF Bolz-Tereick <[email protected]>
GH-123313 is a backport of this pull request to the 3.13 branch. |
@pablogsal thank you! |
if no f_in and f_out arguments are given, _ReadlineWrapper calls os.dup on fd 0 and 1. Instead, just pass None, because the fds aren't needed anyway in this test.
str
, not abytes
object #123228