gh-139445: Skip pyrepl tests if the terminal is not supported#154497
Conversation
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>
|
Is the use of Line 548 in 3479e45 |
|
Yes, |
|
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14, 3.15. |
|
Sorry, @serhiy-storchaka, I could not cleanly backport this to |
|
GH-154530 is a backport of this pull request to the 3.14 branch. |
|
GH-154529 is a backport of this pull request to the 3.15 branch. |
|
|
TestMainwas only skipped ifTERMwas unset ordumb, but pyrepl needs the terminal to have thebel,clear,cupandelcapabilities. Without them it falls back to the basic REPL, and six tests which type bareexitwait for the timeout.Checking the capabilities subsumes the unset/
dumbcase.when can't use pyrepl#139445