aboutsummaryrefslogtreecommitdiff
path: root/test/test_utils.py
diff options
context:
space:
mode:
authorSimon Sawicki <contact@grub4k.xyz>2024-04-28 15:44:46 +0200
committerSimon Sawicki <contact@grub4k.xyz>2024-04-28 15:47:55 +0200
commit7e26bd53f9c5893518fde81dfd0079ec08dd841e (patch)
tree19099488c2632485a60547b45387a1ce6195f06d /test/test_utils.py
parent64766459e37451b665c1464073c28361fbcf1c25 (diff)
[core/windows] Fix tests for `sys.executable` with spaces (Fix for 64766459e37451b665c1464073c28361fbcf1c25)
Authored by: Grub4K
Diffstat (limited to 'test/test_utils.py')
-rw-r--r--test/test_utils.py5
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__':