mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 01:16:28 +03:00
Merge pull request #6072 from svlandeg/bugfix/ExceptionInfo
Fix unit test with ExceptionInfo
This commit is contained in:
commit
4d75040546
|
@ -298,4 +298,4 @@ def test_language_init_invalid_vocab(value):
|
|||
err_fragment = "invalid value"
|
||||
with pytest.raises(ValueError) as e:
|
||||
Language(value)
|
||||
assert err_fragment in str(e)
|
||||
assert err_fragment in str(e.value)
|
||||
|
|
Loading…
Reference in New Issue
Block a user