mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-10 08:12:24 +03:00
* 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
|
@pytest.mark.models
|
||||||
def test_get_tokens_and_sentences(doc):
|
def test_get_tokens_and_sentences(doc):
|
||||||
token = doc[0]
|
token = doc[0]
|
||||||
sentence = doc.sents.next()
|
sentence = next(doc.sents)
|
||||||
assert token is sentence[0]
|
assert token is sentence[0]
|
||||||
assert sentence.text == 'Hello, world.'
|
assert sentence.text == 'Hello, world.'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user