Always use kitty as the python interpreter to run in the tests
This commit is contained in:
parent
b9684879e7
commit
b28d94ac97
@ -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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user