Title: test_readline fails with libeditline+musl · Issue #159424 · python/cpython · GitHub
Open Graph Title: test_readline fails with libeditline+musl · Issue #159424 · python/cpython
X Title: test_readline fails with libeditline+musl · Issue #159424 · python/cpython
Description: Bug report When building cpython 3.14.8 on Linux with editline (instead of readline) and musl, the test_readline tests fail: FAIL: test_append_limited_history (test.test_readline.TestHistoryManipulation.test_append_limited_history) -----...
Open Graph Description: Bug report When building cpython 3.14.8 on Linux with editline (instead of readline) and musl, the test_readline tests fail: FAIL: test_append_limited_history (test.test_readline.TestHistoryManipul...
X Description: Bug report When building cpython 3.14.8 on Linux with editline (instead of readline) and musl, the test_readline tests fail: FAIL: test_append_limited_history (test.test_readline.TestHistoryManipul...
Opengraph URL: https://github.com/python/cpython/issues/159424
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"test_readline fails with libeditline+musl","articleBody":"### Bug report\n\nWhen building cpython 3.14.8 on Linux with editline (instead of readline) and musl, the `test_readline` tests fail:\n\n```\nFAIL: test_append_limited_history (test.test_readline.TestHistoryManipulation.test_append_limited_history)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/usr/lib/python3.14/test/test_readline.py\", line 208, in test_append_limited_history\n self.assertEqual(readline.get_history_item(1), \"second line\")\n ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nAssertionError: '_HiStOrY_V2_' != 'second line'\n- _HiStOrY_V2_\n+ second line\n\n\n======================================================================\nFAIL: test_write_read_append (test.test_readline.TestHistoryManipulation.test_write_read_append)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/usr/lib/python3.14/test/test_readline.py\", line 101, in test_write_read_append\n self.assertEqual(readline.get_current_history_length(), 3)\n ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nAssertionError: 4 != 3\n```\n\nThe tests succeed when glibc is used in an otherwise identical configuration, and also worked in 3.14.7. e87da800b6103fd890841688da48e41e211be7b9 feels relevant.\n\n### CPython versions tested on:\n\n3.14\n\n### Operating systems tested on:\n\nLinux","author":{"url":"https://github.com/rossburton","@type":"Person","name":"rossburton"},"datePublished":"2026-10-14T16:42:36Z","url":"https://github.com/python/cpython/issues/159424"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:fd50ec8e-fb68-a1ae-997b-4f19a9761da8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EB3A:36A3E:327879B:43552DF:6B01F947 |
| html-safe-nonce | 4d137b4e8d36aa9bbcf3cf05edb1be76ed4c9eb535a0085ee4fbb47f64714895 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjNBOjM2QTNFOjMyNzg3OUI6NDM1NTJERjo2QjAxRjk0NyIsInZpc2l0b3JfaWQiOiI4Mzc0NjQxMTkzMzUwNDYxNzY3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 2ca17a63c3b13c2273b0be2f58d9dd596773daed46a0b1c01f5343c943d3f85d |
| hovercard-subject-tag | issue:5851744050 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/python/cpython/159424/issue_layout |
| twitter:image | https://opengraph.githubassets.com/68b114c230a40ec17a9a0059c304bff8a0cf9944c9d6726be76e82470e5f7a72/python/cpython/issues/159424 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/68b114c230a40ec17a9a0059c304bff8a0cf9944c9d6726be76e82470e5f7a72/python/cpython/issues/159424 |
| og:image:alt | Bug report When building cpython 3.14.8 on Linux with editline (instead of readline) and musl, the test_readline tests fail: FAIL: test_append_limited_history (test.test_readline.TestHistoryManipul... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rossburton |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| 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 | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width