* Fix website/test_home for Python 3

This commit is contained in:
Matthew Honnibal 2015-10-09 11:08:31 +02:00
parent caff4638c9
commit 1f90502ce8
1 changed files with 1 additions and 1 deletions

View File

@ -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.'