diff --git a/spacy/tests/tokenizer/conftest.py b/spacy/tests/tokenizer/conftest.py index 06ccde7b3..2f1d65e99 100644 --- a/spacy/tests/tokenizer/conftest.py +++ b/spacy/tests/tokenizer/conftest.py @@ -1,7 +1,7 @@ import pytest -from spacy.en import English +from ...en import English -@pytest.fixture(scope="module") -def en_tokenizer(EN): - return EN.tokenizer +@pytest.fixture +def en_tokenizer(): + return English.Defaults.create_tokenizer()