Title: gh-90092: Fix test_curses when stdin is write-only (e.g. under nohup) by serhiy-storchaka · Pull Request #153420 · python/cpython · GitHub
Open Graph Title: gh-90092: Fix test_curses when stdin is write-only (e.g. under nohup) by serhiy-storchaka · Pull Request #153420 · python/cpython
X Title: gh-90092: Fix test_curses when stdin is write-only (e.g. under nohup) by serhiy-storchaka · Pull Request #153420 · python/cpython
Description: test_curses fails in setUp() when the suite is run backgrounded under nohup: OSError: [Errno 22] Invalid argument setUp() derives the newterm() input fd from stdin, but nohup leaves stdin write-only when it backgrounds a run started from a terminal, and newterm() rejects a write-only input fd. Fall back to the output fd in that case, as is already done when stdin has no fileno(). This only affects builds using the newterm() path (ncurses 6.5+); the previous initscr() path tolerated a write-only stdin. Reported by @weixlu. Issue: gh-90092
Open Graph Description: test_curses fails in setUp() when the suite is run backgrounded under nohup: OSError: [Errno 22] Invalid argument setUp() derives the newterm() input fd from stdin, but nohup leaves stdin write-on...
X Description: test_curses fails in setUp() when the suite is run backgrounded under nohup: OSError: [Errno 22] Invalid argument setUp() derives the newterm() input fd from stdin, but nohup leaves stdin write-on...
Opengraph URL: https://github.com/python/cpython/pull/153420
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:0e92b211-7694-1ef5-28a8-f59e1d1289f1 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 90B4:CDEBD:3B45F53:545A291:6A56ADCC |
| html-safe-nonce | 40e121d5994138d755bc9c31fe4e3c2837310a35c8d17d1bcf5398b816d5782d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MEI0OkNERUJEOjNCNDVGNTM6NTQ1QTI5MTo2QTU2QURDQyIsInZpc2l0b3JfaWQiOiI2Mjg0Njg5NTY0Mjc3MDU5MDIxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 2a56d69e0341d8d0bfe3d6660790b084ddf6c3cfd26dcee966cb37c7af875bfd |
| hovercard-subject-tag | pull_request:4021910551 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/153420/files |
| twitter:image | https://avatars.githubusercontent.com/u/3659035?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/3659035?s=400&v=4 |
| og:image:alt | test_curses fails in setUp() when the suite is run backgrounded under nohup: OSError: [Errno 22] Invalid argument setUp() derives the newterm() input fd from stdin, but nohup leaves stdin write-on... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | df99b7164e1d961b639cf5d3cbd6b5ba673edc67bd7e47cdc4746b96099e11ae |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | c29ba03b1896083dbe1084f6cd1c5367d8a0d67c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width