From 1d7fde7bf0b43cd7d0b886f1b49a22da88b0e69e Mon Sep 17 00:00:00 2001 From: Fabian Boehm Date: Tue, 7 May 2024 17:54:03 +0200 Subject: [PATCH] tests: Fix apple key "invalid escape sequence" with python 3.12 --- tests/pexpects/generic.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/pexpects/generic.py b/tests/pexpects/generic.py index e964db82a..e0f79b475 100644 --- a/tests/pexpects/generic.py +++ b/tests/pexpects/generic.py @@ -18,8 +18,8 @@ send, sendline, sleep, expect_prompt, expect_re, expect_str = ( expect_prompt() # ensure the Apple key () is typeable -sendline("echo ") -expect_prompt("") +sendline("echo \xf8ff") +expect_prompt("\xf8ff") # check that history is returned in the right order (#2028) # first send 'echo stuff'