Re-enable the spawn tesRe-enable the spawn test

This commit is contained in:
Kovid Goyal
2020-06-23 20:43:40 +05:30
parent ee2fdb3d25
commit 50414b333a
2 changed files with 6 additions and 2 deletions

View File

@@ -62,7 +62,12 @@ def build_c_extensions(ext_dir, args):
def run_tests(path_to_kitty, cwd_on_failure):
ret = run(PYTHON, 'test.py', cwd=cwd_on_failure)
kw = {'cwd': cwd_on_failure}
if not ismacos:
# this is needed for the spawn test which starts an interpreter
# using the kitty launcher.
kw['PYTHONHOME'] = PREFIX
ret = run(PYTHON, 'test.py', **kw)
if ret != 0:
os.chdir(cwd_on_failure)
print(