mirror of https://github.com/explosion/spaCy.git
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