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

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

Repository navigation

gh-133031: Fix test_textbox_unicode on a narrow build - #152750

Merged
serhiy-storchaka merged 1 commit into
python:mainfrom
serhiy-storchaka:gh-133031-textbox-unicode-narrow
Jul 1, 2026
Merged

serhiy-storchaka merged 1 commit into
python:mainfrom
serhiy-storchaka:gh-133031-textbox-unicode-narrow

Conversation

Copy link
Copy Markdown
Member

test_textbox_unicode and test_textbox_unicode_insert_mode (added by GH-152482) guarded only on _encodable(), so under a UTF-8 locale on a narrow build they fed multi-byte characters to do_command(), where addch() raises OverflowError: byte doesn't fit in chtype (a narrow build stores one byte per cell).

Skip the multi-byte cases on a narrow build, as already done for test_textbox_edit_wide in GH-152592.

Reproduced the failure (10 errors) and confirmed the fix on a narrow _curses build under a UTF-8 locale; no change on a wide build.

A narrow build stores one byte per cell, so skip the multi-byte cases there,
as already done for test_textbox_edit_wide.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
bedevere-app Bot added the tests Tests in the Lib/test dir label Jul 1, 2026
serhiy-storchaka enabled auto-merge (squash) July 1, 2026 08:24
serhiy-storchaka merged commit 711e811 into python:main Jul 1, 2026
54 checks passed
serhiy-storchaka deleted the gh-133031-textbox-unicode-narrow branch July 1, 2026 16:47
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