mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 14:18:26 +02:00
Always use kitty as the python interpreter to run in the tests
This commit is contained in:
@@ -130,10 +130,8 @@ class BaseTest(TestCase):
|
|||||||
return options
|
return options
|
||||||
|
|
||||||
def cmd_to_run_python_code(self, code):
|
def cmd_to_run_python_code(self, code):
|
||||||
cmd = [sys.executable]
|
from kitty.constants import kitty_exe
|
||||||
cmd.append('-c' if 'python' in sys.executable.lower() else '+runpy')
|
return [kitty_exe(), '+runpy', code]
|
||||||
cmd.append(code)
|
|
||||||
return cmd
|
|
||||||
|
|
||||||
def create_screen(self, cols=5, lines=5, scrollback=5, cell_width=10, cell_height=20, options=None):
|
def create_screen(self, cols=5, lines=5, scrollback=5, cell_width=10, cell_height=20, options=None):
|
||||||
self.set_options(options)
|
self.set_options(options)
|
||||||
|
|||||||
Reference in New Issue
Block a user