From abf92fcbd1e049af462a957f8e9af1a01c7bb6b7 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sun, 2 Jun 2024 15:47:15 -0700 Subject: [PATCH] Fix the bind.py tests Errant newlines were causing extra prompts. --- tests/pexpects/bind.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/pexpects/bind.py b/tests/pexpects/bind.py index b86dd016b..ef4709a61 100644 --- a/tests/pexpects/bind.py +++ b/tests/pexpects/bind.py @@ -358,7 +358,7 @@ send('\x02\x02\x02') # ctrl-b, backward-char sendline('\x1bu') # alt+u, upcase word expect_prompt("fooBAR") -send(""" +sendline(""" bind ctrl-g " commandline --insert 'echo foo ar' commandline -f backward-word @@ -367,7 +367,7 @@ send(""" commandline -f backward-char commandline -f delete-char " -""") +""".strip()) send('\x07') # ctrl-g send('\r') expect_prompt("foobar")