Add additional argument to test proper quoting end

pull/9802/head
Simon Sawicki 2024-04-27 10:22:12 +02:00
rodzic 8de5954deb
commit 980d99a912
Nie znaleziono w bazie danych klucza dla tego podpisu
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -2088,11 +2088,11 @@ Line 1
else:
argument, expected = argument
args = [sys.executable, '-c', 'import sys; print(end=sys.argv[1])', argument]
args = [sys.executable, '-c', 'import sys; print(end=sys.argv[1])', argument, 'end']
assert run_shell(args) == expected
escaped = shell_quote(argument, shell=True)
args = f'{sys.executable} -c "import sys; print(end=sys.argv[1])" {escaped}'
args = f'{sys.executable} -c "import sys; print(end=sys.argv[1])" {escaped} end'
assert run_shell(args) == expected