mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 01:46:28 +03:00
use e.value to get to the ExceptionInfo value
This commit is contained in:
parent
aaf01689a1
commit
f420aa1138
|
@ -298,4 +298,4 @@ def test_language_init_invalid_vocab(value):
|
||||||
err_fragment = "invalid value"
|
err_fragment = "invalid value"
|
||||||
with pytest.raises(ValueError) as e:
|
with pytest.raises(ValueError) as e:
|
||||||
Language(value)
|
Language(value)
|
||||||
assert err_fragment in str(e)
|
assert err_fragment in str(e.value)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user