mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-27 10:26:35 +03:00
Add xfailing test for #3289
This commit is contained in:
parent
57ae71ea95
commit
3b667787a9
17
spacy/tests/regression/test_issue3289.py
Normal file
17
spacy/tests/regression/test_issue3289.py
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
# coding: utf-8
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
|
import pytest
|
||||||
|
from spacy.lang.en import English
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.xfail
|
||||||
|
def test_issue3289():
|
||||||
|
"""Test that Language.to_bytes handles serializing a pipeline component
|
||||||
|
with an uninitialized model."""
|
||||||
|
nlp = English()
|
||||||
|
nlp.add_pipe(nlp.create_pipe("textcat"))
|
||||||
|
bytes_data = nlp.to_bytes()
|
||||||
|
new_nlp = English()
|
||||||
|
new_nlp.add_pipe(nlp.create_pipe("textcat"))
|
||||||
|
new_nlp.from_bytes(bytes_data)
|
Loading…
Reference in New Issue
Block a user