From 81a47c01d857692e44901d1faf4b085fe737d1f6 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Tue, 27 Sep 2016 19:21:22 +0200 Subject: [PATCH] Fix test for empty sentence string. --- spacy/tests/tokens/test_tokens_api.py | 1 + 1 file changed, 1 insertion(+) diff --git a/spacy/tests/tokens/test_tokens_api.py b/spacy/tests/tokens/test_tokens_api.py index 04281bd14..47ad8545f 100644 --- a/spacy/tests/tokens/test_tokens_api.py +++ b/spacy/tests/tokens/test_tokens_api.py @@ -166,6 +166,7 @@ def test_merge_hang(): def test_sents_empty_string(EN): doc = EN(u'') + doc.is_parsed = True sents = list(doc.sents) assert len(sents) == 0