A feature-rich command-line audio/video downloader
[core/windows] Fix tests for `sys.executable` with spaces (Fix for 64766459e37451b665c1464073c28361fbcf1c25)
Simon Sawicki7e26bd53f9c5
diff --git a/test/test_utils.py b/test/test_utils.pyindex 824864577d..816cf03f6b 100644--- a/test/test_utils.py+++ b/test/test_utils.py@@ -2090,10 +2090,7 @@ Line 1args = [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)) == expectedif __name__ == '__main__':