Merge pull request #6072 from svlandeg/bugfix/ExceptionInfo

Fix unit test with ExceptionInfo
This commit is contained in:
Ines Montani 2020-09-15 22:52:48 +02:00 committed by GitHub
commit 4d75040546
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)