From 9d005a7d1eaa0f73295b92a99b101ed491b81d32 Mon Sep 17 00:00:00 2001 From: richardpaulhudson Date: Wed, 20 Jul 2022 08:59:09 +0200 Subject: [PATCH] Correct test --- spacy/tests/test_parallel.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spacy/tests/test_parallel.py b/spacy/tests/test_parallel.py index 9c7692de8..1d21984fe 100644 --- a/spacy/tests/test_parallel.py +++ b/spacy/tests/test_parallel.py @@ -228,9 +228,11 @@ sys.exit(int(rc)) with pytest.raises(SystemExit) as rc_e: project_run(d, "all") if os.name == "nt": + # because in Windows the terminated process has rc=15 rather than rc=-15, + # 15 is the highest rc rather than 1. assert rc_e.value.code == 15 else: assert rc_e.value.code == 1 assert ( time() - start < 5 - ), "Test took too long, subprocesses seem not have been terminated" + ), "Test took too long, subprocess seems not to have been terminated"