summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pyrepl/test_pyrepl.py
diff options
context:
space:
mode:
authorDaniel Hollas <daniel.hollas@bristol.ac.uk>2025-01-21 21:06:13 (GMT)
committerGitHub <noreply@github.com>2025-01-21 21:06:13 (GMT)
commit29caec62ee0650493c83c778ee2ea50b0501bc41 (patch)
treefc16b1f0150c6a6d33e93c06acd96436c634a5fe /Lib/test/test_pyrepl/test_pyrepl.py
parent5a9afe23620aadea30013076d64686be8bf66f7e (diff)
downloadcpython-29caec62ee0650493c83c778ee2ea50b0501bc41.zip
cpython-29caec62ee0650493c83c778ee2ea50b0501bc41.tar.gz
cpython-29caec62ee0650493c83c778ee2ea50b0501bc41.tar.bz2
gh-118878: Pyrepl: show completions menu below the current line (#118939)
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Diffstat (limited to 'Lib/test/test_pyrepl/test_pyrepl.py')
-rw-r--r--Lib/test/test_pyrepl/test_pyrepl.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_pyrepl/test_pyrepl.py b/Lib/test/test_pyrepl/test_pyrepl.py
index 77e1fae..00dc990 100644
--- a/Lib/test/test_pyrepl/test_pyrepl.py
+++ b/Lib/test/test_pyrepl/test_pyrepl.py
@@ -850,7 +850,7 @@ class TestPyReplCompleter(TestCase):
output = multiline_input(reader, namespace)
self.assertEqual(output, "python")
- def test_updown_arrow_with_completion_menu(self):
+ def test_up_down_arrow_with_completion_menu(self):
"""Up arrow in the middle of unfinished tab completion when the menu is displayed
should work and trigger going back in history. Down arrow should subsequently
get us back to the incomplete command."""
@@ -860,6 +860,7 @@ class TestPyReplCompleter(TestCase):
events = itertools.chain(
code_to_events(code),
[
+ Event(evt="key", data="down", raw=bytearray(b"\x1bOB")),
Event(evt="key", data="up", raw=bytearray(b"\x1bOA")),
Event(evt="key", data="down", raw=bytearray(b"\x1bOB")),
],