update error type

This commit is contained in:
svlandeg 2020-08-28 10:46:21 +02:00
parent c558ca4485
commit 73baaf330a

View File

@ -1,4 +1,6 @@
import pytest
from click import NoSuchOption
from spacy.gold import docs_to_json, biluo_tags_from_offsets
from spacy.gold.converters import iob2docs, conll_ner2docs, conllu2docs
from spacy.lang.en import English
@ -375,7 +377,7 @@ def test_parse_config_overrides(args, expected):
[["--foo"], ["--x.foo", "bar", "--baz"], ["--x.foo", "bar", "baz"], ["x.foo"]],
)
def test_parse_config_overrides_invalid(args):
with pytest.raises(SystemExit):
with pytest.raises(NoSuchOption):
parse_config_overrides(args)