Skip to content

gh-139445: Skip pyrepl tests if the terminal is not supported#154497

Open
serhiy-storchaka wants to merge 1 commit into
python:mainfrom
serhiy-storchaka:pyrepl-terminal-skip
Open

gh-139445: Skip pyrepl tests if the terminal is not supported#154497
serhiy-storchaka wants to merge 1 commit into
python:mainfrom
serhiy-storchaka:pyrepl-terminal-skip

Conversation

@serhiy-storchaka

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

Copy link
Copy Markdown
Member

TestMain was only skipped if TERM was unset or dumb, but pyrepl needs the terminal to have the bel, clear, cup and el capabilities. Without them it falls back to the basic REPL, and six tests which type bare exit wait for the timeout.

Checking the capabilities subsumes the unset/dumb case.

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>
@bedevere-app bedevere-app Bot added the tests Tests in the Lib/test dir label Jul 22, 2026
@serhiy-storchaka serhiy-storchaka added needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes skip news labels Jul 22, 2026
@edvilme

edvilme commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Is the use of _colorize.get_colors relevant here?

def get_colors(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting merge needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants