From a0e845f2634dab15db2e5517813d9288f66dc93e Mon Sep 17 00:00:00 2001 From: Adriane Boyd Date: Tue, 1 Aug 2023 14:28:26 +0200 Subject: [PATCH] Fix executable in another test --- spacy/tests/test_cli_app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spacy/tests/test_cli_app.py b/spacy/tests/test_cli_app.py index 3004bc3ce..2424138d3 100644 --- a/spacy/tests/test_cli_app.py +++ b/spacy/tests/test_cli_app.py @@ -235,14 +235,14 @@ def test_multi_code_evaluate(code_paths, data_paths, noop_config): # the other commands. # Train a model to evaluate - cmd = f"python -m spacy train {noop_config} -o model".split() + cmd = f"{sys.executable} -m spacy train {noop_config} -o model".split() result = subprocess.run([*cmd, *data_paths, *code_paths]) assert result.returncode == 0 # now do the evaluation eval_data = data_paths[-1] - cmd = f"python -m spacy evaluate model/model-best {eval_data}".split() + cmd = f"{sys.executable} -m spacy evaluate model/model-best {eval_data}".split() # check that it fails without the code arg result = subprocess.run(cmd)