mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-10 15:14:56 +03:00
Correct test
This commit is contained in:
parent
bc79e5a41d
commit
9d005a7d1e
|
@ -228,9 +228,11 @@ sys.exit(int(rc))
|
||||||
with pytest.raises(SystemExit) as rc_e:
|
with pytest.raises(SystemExit) as rc_e:
|
||||||
project_run(d, "all")
|
project_run(d, "all")
|
||||||
if os.name == "nt":
|
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
|
assert rc_e.value.code == 15
|
||||||
else:
|
else:
|
||||||
assert rc_e.value.code == 1
|
assert rc_e.value.code == 1
|
||||||
assert (
|
assert (
|
||||||
time() - start < 5
|
time() - start < 5
|
||||||
), "Test took too long, subprocesses seem not have been terminated"
|
), "Test took too long, subprocess seems not to have been terminated"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user