spaCy/spacy/tests/regression/test_issue589.py

15 lines
259 B
Python
Raw Normal View History

2017-01-10 21:24:10 +03:00
# coding: utf-8
from __future__ import unicode_literals
2016-11-01 14:33:36 +03:00
from ...vocab import Vocab
from ..util import get_doc
2016-11-01 14:33:36 +03:00
2017-01-10 21:24:10 +03:00
import pytest
2016-11-01 14:33:36 +03:00
2017-10-11 14:27:18 +03:00
@pytest.mark.xfail
2016-11-01 14:33:36 +03:00
def test_issue589():
vocab = Vocab()
vocab.strings.set_frozen(True)
doc = get_doc(vocab, ['whata'])