mirror of https://github.com/explosion/spaCy.git
* Fix website/test_home for Python 3
This commit is contained in:
parent
caff4638c9
commit
1f90502ce8
|
@ -17,7 +17,7 @@ def test_load_resources_and_process_text():
|
|||
@pytest.mark.models
|
||||
def test_get_tokens_and_sentences(doc):
|
||||
token = doc[0]
|
||||
sentence = doc.sents.next()
|
||||
sentence = next(doc.sents)
|
||||
assert token is sentence[0]
|
||||
assert sentence.text == 'Hello, world.'
|
||||
|
||||
|
|
Loading…
Reference in New Issue