From 0c15ab7ca1dbc897e07c038daa4bbc1f2e0a7076 Mon Sep 17 00:00:00 2001 From: svlandeg Date: Mon, 7 Feb 2022 12:17:18 +0100 Subject: [PATCH] remove irrelevant unit test (behaviour clarified by new error msgs around doc.spans) --- spacy/tests/pipeline/test_coref.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/spacy/tests/pipeline/test_coref.py b/spacy/tests/pipeline/test_coref.py index 8a20e43a4..61ef6de6f 100644 --- a/spacy/tests/pipeline/test_coref.py +++ b/spacy/tests/pipeline/test_coref.py @@ -78,15 +78,6 @@ def test_initialized_short(nlp): print(doc.spans) -def test_initialized_2(nlp): - nlp.add_pipe("coref") - nlp.initialize() - assert nlp.pipe_names == ["coref"] - text = "She gave me her pen." - # TODO: This crashes though it works when using intermediate var 'doc' ! - print(nlp(text).spans) - - def test_coref_serialization(nlp): # Test that the coref component can be serialized nlp.add_pipe("coref", last=True)