From 1f90502ce8fec29786ae7c65de2e0e5391bdd931 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Fri, 9 Oct 2015 11:08:31 +0200 Subject: [PATCH] * Fix website/test_home for Python 3 --- tests/website/test_home.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/website/test_home.py b/tests/website/test_home.py index 6c97b0f31..4da61becf 100644 --- a/tests/website/test_home.py +++ b/tests/website/test_home.py @@ -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.'