mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-27 23:45:01 +03:00
Improve error logging
This commit is contained in:
parent
70fa1ce644
commit
afba051b62
|
@ -298,4 +298,4 @@ def _check_requirements(requirements: List[str]) -> Tuple[bool, bool]:
|
|||
for pgk_msg in failed_pkgs_msgs + conflicting_pkgs_msgs:
|
||||
msg.text(pgk_msg)
|
||||
|
||||
return len(failed_pkgs_msgs) > 0, len(conflicting_pkgs_msgs) > 0
|
||||
return len(failed_pkgs_msgs) > 0, len(conflicting_pkgs_msgs) > 0
|
||||
|
|
|
@ -266,6 +266,9 @@ sys.exit(int(rc))
|
|||
assert rc_e.value.code == 15
|
||||
else:
|
||||
assert rc_e.value.code == 1
|
||||
time_taken = time() - start < 15
|
||||
assert (
|
||||
time() - start < 15
|
||||
), "Test took too long, subprocess seems not to have been terminated"
|
||||
time_taken < 15
|
||||
), "Test took {time_taken}, subprocess seems not to have been terminated"
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user