Skip to content

[3.14] gh-139445: Skip pyrepl tests if the terminal is not supported (GH-154497)#154530

Merged
serhiy-storchaka merged 1 commit into
python:3.14from
serhiy-storchaka:backport-7745710b-3.14
Jul 23, 2026
Merged

[3.14] gh-139445: Skip pyrepl tests if the terminal is not supported (GH-154497)#154530
serhiy-storchaka merged 1 commit into
python:3.14from
serhiy-storchaka:backport-7745710b-3.14

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Jul 23, 2026

Copy link
Copy Markdown
Member

Manual backport of GH-154497; miss-islington could not apply it cleanly.

The only conflict was the import block: main imports ANSIColors, get_theme from _colorize just above the added from _pyrepl import terminfo, but 3.14 does not, so only the terminfo import is added here.
(cherry picked from commit 7745710)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com

…ythonGH-154497)

They were only skipped if TERM was unset or "dumb", but pyrepl also
needs the terminal to have several capabilities.

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
(cherry picked from commit 7745710)
@serhiy-storchaka serhiy-storchaka added skip news tests Tests in the Lib/test dir labels Jul 23, 2026
@serhiy-storchaka
serhiy-storchaka enabled auto-merge (squash) July 23, 2026 07:56
@serhiy-storchaka
serhiy-storchaka merged commit 37a5c69 into python:3.14 Jul 23, 2026
53 checks passed
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