From 2e50dbb9d72416e70c45022365e587b424806eea Mon Sep 17 00:00:00 2001 From: ines Date: Tue, 28 Nov 2017 20:27:27 +0100 Subject: [PATCH] Simplify test --- spacy/tests/regression/test_issue1612.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/spacy/tests/regression/test_issue1612.py b/spacy/tests/regression/test_issue1612.py index 4587a785f..6cae17e77 100644 --- a/spacy/tests/regression/test_issue1612.py +++ b/spacy/tests/regression/test_issue1612.py @@ -1,12 +1,8 @@ +# coding: utf8 from __future__ import unicode_literals -import pytest -from ...lang.en import English - - -def test_issue1612(): - nlp = English() - doc = nlp('The black cat purrs.') +def test_issue1612(en_tokenizer): + doc = en_tokenizer('The black cat purrs.') span = doc[1: 3] assert span.orth_ == span.text