spaCy/spacy/tests/regression/test_issue588.py

13 lines
240 B
Python
Raw Normal View History

2017-01-10 21:24:10 +03:00
# coding: utf-8
from __future__ import unicode_literals
from ...matcher import Matcher
2017-01-10 21:24:10 +03:00
import pytest
def test_issue588(en_vocab):
matcher = Matcher(en_vocab)
with pytest.raises(ValueError):
2017-05-22 14:54:20 +03:00
matcher.add('TEST', None, [])