diff options
-rw-r--r-- | test/test_utils.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/test/test_utils.py b/test/test_utils.py index 824864577..816cf03f6 100644 --- a/test/test_utils.py +++ b/test/test_utils.py @@ -2090,10 +2090,7 @@ Line 1 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} end' - assert run_shell(args) == expected + assert run_shell(shell_quote(args, shell=True)) == expected if __name__ == '__main__': |