mirror of
https://github.com/kovidgoyal/kitty.git
synced 2024-11-11 01:28:19 +03:00
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
|
||||
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user