From 5a342e8a4b3e1fa4c0af14a40da2c4ebfcb85d1a Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Mon, 25 Nov 2024 11:12:32 +0100 Subject: [PATCH] tests/sys/shell: fix invalid escaping in test This fixes: /home/marian.buschsieweke@ml-pa.loc/Repos/software/RIOT/master/tests/sys/shell/tests/01-run.py:86: SyntaxWarning: invalid escape sequence '\e' Python still assumes `\\` if `\` is not valid, but started to warn. Chances are good that this will be elevated to an error in future python releases. --- tests/sys/shell/tests/01-run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/sys/shell/tests/01-run.py b/tests/sys/shell/tests/01-run.py index faa79a3859..b0f21091d0 100755 --- a/tests/sys/shell/tests/01-run.py +++ b/tests/sys/shell/tests/01-run.py @@ -83,7 +83,7 @@ CMDS = ( ('echo escaped\\ space', '"echo""escaped space"'), ('echo escape within \'\\s\\i\\n\\g\\l\\e\\q\\u\\o\\t\\e\'', '"echo""escape""within""singlequote"'), ('echo escape within "\\d\\o\\u\\b\\l\\e\\q\\u\\o\\t\\e"', '"echo""escape""within""doublequote"'), - ("""echo "t\e st" "\\"" '\\'' a\ b""", '"echo""te st"""""\'""a b"'), # noqa: W605 + ("""echo "t\\e st" "\\"" '\\'' a\ b""", '"echo""te st"""""\'""a b"'), # noqa: W605 # test correct quoting ('echo "hello"world', '"echo""helloworld"'),