1
1
mirror of https://github.com/explosion/spaCy.git synced 2025-03-23 11:24:23 +03:00
spaCy/spacy/tests/regression/test_issue588.py

13 lines
274 B
Python

# coding: utf-8
from __future__ import unicode_literals
from ...matcher import Matcher
import pytest
def test_issue588(en_vocab):
matcher = Matcher(en_vocab)
with pytest.raises(ValueError):
matcher.add(entity_key='1', label='TEST', attrs={}, specs=[[]])