Fix tokenizer fixture scope

This commit is contained in:
ines 2017-06-05 01:06:34 +02:00
parent efc37ea3de
commit 078232932c

View File

@ -37,7 +37,7 @@ def FR(request):
return load_test_model(request.param)
@pytest.fixture(params=_languages, scope='session')
@pytest.fixture(params=_languages, scope='module')
def tokenizer(request):
lang = util.get_lang_class(request.param)
return lang.Defaults.create_tokenizer()