From e2a1f8dde783c55dbca449691986923cb4025721 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 30 Aug 2022 10:40:59 +0530 Subject: [PATCH] ... --- kitty_tests/check_build.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kitty_tests/check_build.py b/kitty_tests/check_build.py index 4db7daa6c..ce7766c3d 100644 --- a/kitty_tests/check_build.py +++ b/kitty_tests/check_build.py @@ -111,7 +111,7 @@ class TestBuild(BaseTest): from kitty.constants import kitty_exe import subprocess exe = kitty_exe() - cp = subprocess.run([exe, '+runpy', '''\ + cp = subprocess.run([exe, '+runpy', f'''\ import os, sys if sys.stdin: os.close(sys.stdin.fileno()) @@ -119,7 +119,7 @@ if sys.stdout: os.close(sys.stdout.fileno()) if sys.stderr: os.close(sys.stderr.fileno()) -os.execlp('kitty', 'kitty', '+runpy', 'import sys; raise SystemExit(1 if sys.stdout is None or sys.stdin is None or sys.stderr is None else 0)') +os.execlp({exe!r}, 'kitty', '+runpy', 'import sys; raise SystemExit(1 if sys.stdout is None or sys.stdin is None or sys.stderr is None else 0)') ''']) self.assertEqual(cp.returncode, 0)