FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-133031: Fix test_textbox_edit_wide on a narrow build by serhiy-storchaka · Pull Request #152592 · python/cpython · GitHub

Repository navigation

gh-133031: Fix test_textbox_edit_wide on a narrow build - #152592

Merged
serhiy-storchaka merged 1 commit into
python:mainfrom
serhiy-storchaka:curses-textbox-edit-wide-narrow
Jun 29, 2026
Merged

serhiy-storchaka merged 1 commit into
python:mainfrom
serhiy-storchaka:curses-textbox-edit-wide-narrow

Conversation

Copy link
Copy Markdown
Member

test_textbox_edit_wide is the only textbox test that feeds characters through curses.unget_wch(). On a narrow build (no wide-character support) unget_wch() can only push a character that encodes to a single byte, so under a UTF-8 locale a non-ASCII character such as 'é' raises OverflowError. This was failing on the macOS buildbots, which link the system narrow curses.

Skip the multi-byte cases on a narrow build, the same way the existing 8-bit textbox tests do.

unget_wch() can push only a single-byte character on a narrow build,
so skip the multi-byte cases there.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
bedevere-app Bot added the tests Tests in the Lib/test dir label Jun 29, 2026
serhiy-storchaka enabled auto-merge (squash) June 29, 2026 13:49
serhiy-storchaka merged commit b8cb055 into python:main Jun 29, 2026
54 checks passed
serhiy-storchaka deleted the curses-textbox-edit-wide-narrow branch June 29, 2026 14:13
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL