Always use kitty as the python interpreter to run in the tests

This commit is contained in:
Kovid Goyal 2022-02-21 14:45:12 +05:30
parent b9684879e7
commit b28d94ac97
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -130,10 +130,8 @@ class BaseTest(TestCase):
return options
def cmd_to_run_python_code(self, code):
cmd = [sys.executable]
cmd.append('-c' if 'python' in sys.executable.lower() else '+runpy')
cmd.append(code)
return cmd
from kitty.constants import kitty_exe
return [kitty_exe(), '+runpy', code]
def create_screen(self, cols=5, lines=5, scrollback=5, cell_width=10, cell_height=20, options=None):
self.set_options(options)