mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-27 17:54:39 +03:00
Fix test for empty sentence string.
This commit is contained in:
parent
4cbf0d3bb6
commit
81a47c01d8
|
@ -166,6 +166,7 @@ def test_merge_hang():
|
||||||
|
|
||||||
def test_sents_empty_string(EN):
|
def test_sents_empty_string(EN):
|
||||||
doc = EN(u'')
|
doc = EN(u'')
|
||||||
|
doc.is_parsed = True
|
||||||
sents = list(doc.sents)
|
sents = list(doc.sents)
|
||||||
assert len(sents) == 0
|
assert len(sents) == 0
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user