mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-13 13:17:06 +03:00
Fix tokenizer fixture scope
This commit is contained in:
parent
efc37ea3de
commit
078232932c
|
@ -37,7 +37,7 @@ def FR(request):
|
||||||
return load_test_model(request.param)
|
return load_test_model(request.param)
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(params=_languages, scope='session')
|
@pytest.fixture(params=_languages, scope='module')
|
||||||
def tokenizer(request):
|
def tokenizer(request):
|
||||||
lang = util.get_lang_class(request.param)
|
lang = util.get_lang_class(request.param)
|
||||||
return lang.Defaults.create_tokenizer()
|
return lang.Defaults.create_tokenizer()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user