Skip to content

[3.15] gh-150922: Fix test_cmd libedit assertion in test_bang_completion_without_do_shell (GH-156623) - #157155

Merged
serhiy-storchaka merged 1 commit into
python:3.15from
miss-islington:backport-0b4c7da-3.15
Oct 10, 2026
Merged

serhiy-storchaka merged 1 commit into
python:3.15from
miss-islington:backport-0b4c7da-3.15

Conversation

@miss-islington

@miss-islington miss-islington commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

GNU readline retypes the full completed word after tab completion, but
libedit redraws only the untyped suffix following a cursor-forward
escape sequence. Assert on the common suffix ('ello') instead of the
literal 'hello' bytes so the test passes on both backends.
(cherry picked from commit 0b4c7da)

Co-authored-by: Shardul Deshpande iamsharduld@users.noreply.github.com

…on_without_do_shell (pythonGH-156623)

GNU readline retypes the full completed word after tab completion, but
libedit redraws only the untyped suffix following a cursor-forward
escape sequence. Assert on the common suffix ('ello') instead of the
literal 'hello' bytes so the test passes on both backends.
(cherry picked from commit 0b4c7da)

Co-authored-by: Shardul Deshpande <iamsharduld@users.noreply.github.com>
@gpshead

gpshead commented Sep 8, 2026

Copy link
Copy Markdown
Member

fine to wait for 3.15.1, it's just a small test improvement.

@gpshead gpshead self-assigned this Sep 8, 2026
@serhiy-storchaka
serhiy-storchaka merged commit ff3b98c into python:3.15 Oct 10, 2026
57 checks passed
@miss-islington
miss-islington deleted the backport-0b4c7da-3.15 branch October 10, 2026 10:33
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.

4 participants