From 50414b333a42e4b8901def497423d87148b4b7bc Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 23 Jun 2020 20:43:40 +0530 Subject: [PATCH] Re-enable the spawn tesRe-enable the spawn test --- bypy/init_env.py | 7 ++++++- kitty_tests/tui.py | 1 - 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/bypy/init_env.py b/bypy/init_env.py index 8de214036..e2759adac 100644 --- a/bypy/init_env.py +++ b/bypy/init_env.py @@ -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( diff --git a/kitty_tests/tui.py b/kitty_tests/tui.py index ca249e023..2a989deb6 100644 --- a/kitty_tests/tui.py +++ b/kitty_tests/tui.py @@ -44,6 +44,5 @@ class TestTUI(BaseTest): self.assertTrue(le.pending_bell) def test_multiprocessing_spawn(self): - return # temporarily disable this test till I can figure out why its failing in the build env from kitty.multiprocessing import test_spawn test_spawn()