spaCy/spacy/tests/regression/test_issue588.py

13 lines
240 B
Python
Raw Normal View History

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