From 3b667787a932efdf2179bb8eb8a1654517e9a3e6 Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Mon, 18 Feb 2019 16:45:04 +0100 Subject: [PATCH] Add xfailing test for #3289 --- spacy/tests/regression/test_issue3289.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 spacy/tests/regression/test_issue3289.py diff --git a/spacy/tests/regression/test_issue3289.py b/spacy/tests/regression/test_issue3289.py new file mode 100644 index 000000000..92b4ec853 --- /dev/null +++ b/spacy/tests/regression/test_issue3289.py @@ -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)