diff --git a/spacy/tests/parser/test_ner.py b/spacy/tests/parser/test_ner.py index 064b36b91..9904dde63 100644 --- a/spacy/tests/parser/test_ner.py +++ b/spacy/tests/parser/test_ner.py @@ -46,7 +46,7 @@ def test_unit_end_gazetteer(EN): ents = matcher(doc) assert len(ents) == 1 EN.entity(doc) - assert list(EN.ents)[0].text == 'cal' + assert list(doc.ents)[0].text == 'cal'