mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
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 `\\<char>` if `\<char>` is not valid, but started to warn. Chances are good that this will be elevated to an error in future python releases.
This commit is contained in:
parent
c700aa92d4
commit
5a342e8a4b
@ -83,7 +83,7 @@ CMDS = (
|
|||||||
('echo escaped\\ space', '"echo""escaped space"'),
|
('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 \'\\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 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
|
# test correct quoting
|
||||||
('echo "hello"world', '"echo""helloworld"'),
|
('echo "hello"world', '"echo""helloworld"'),
|
||||||
|
Loading…
Reference in New Issue
Block a user