Title: gh-152260: Fix test_scr_dump() on macOS by serhiy-storchaka · Pull Request #152340 · python/cpython · GitHub
Open Graph Title: gh-152260: Fix test_scr_dump() on macOS by serhiy-storchaka · Pull Request #152340 · python/cpython
X Title: gh-152260: Fix test_scr_dump() on macOS by serhiy-storchaka · Pull Request #152340 · python/cpython
Description: Issue: gh-152260 test_scr_dump() compared scr_dump() output files for byte equality, but the dump format embeds raw pointers on some platforms (such as the ncurses shipped with macOS), so two dumps of the same screen are not byte-identical. This made test_curses fail on the macos-26-intel runner. Probe whether the format is deterministic and only run the dump-file comparisons when it is. On platforms where it is not, the test still checks that the dump is non-empty and that scr_restore(), scr_init() and scr_set() succeed.
Open Graph Description: Issue: gh-152260 test_scr_dump() compared scr_dump() output files for byte equality, but the dump format embeds raw pointers on some platforms (such as the ncurses shipped with macOS), so two dum...
X Description: Issue: gh-152260 test_scr_dump() compared scr_dump() output files for byte equality, but the dump format embeds raw pointers on some platforms (such as the ncurses shipped with macOS), so two dum...
Opengraph URL: https://github.com/python/cpython/pull/152340
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:9ae7c8b6-9164-ad79-e8bc-225311ed77a2 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 977C:185C34:1DF3241:28F99CF:6A5380B6 |
| html-safe-nonce | 03a456cb9c78c8db79d312ffccbdf4f814704135d7df4d607fdb7ba0779095a3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NzdDOjE4NUMzNDoxREYzMjQxOjI4Rjk5Q0Y6NkE1MzgwQjYiLCJ2aXNpdG9yX2lkIjoiNDQ4MTYzMTQ1OTg0NTgzMjg4NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 098af215b7eb301fcd818605fce65d818dc153e8919eb3503e2f44ae4be5b370 |
| hovercard-subject-tag | pull_request:3944928679 |
| 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/152340/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 | Issue: gh-152260 test_scr_dump() compared scr_dump() output files for byte equality, but the dump format embeds raw pointers on some platforms (such as the ncurses shipped with macOS), so two dum... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width