From 61a503a61195c465328fcf0f283ce64f923b5c55 Mon Sep 17 00:00:00 2001 From: ines Date: Sat, 7 Oct 2017 00:38:51 +0200 Subject: [PATCH] Fix parser test --- spacy/tests/conftest.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spacy/tests/conftest.py b/spacy/tests/conftest.py index b33a7c008..28b5f4ab9 100644 --- a/spacy/tests/conftest.py +++ b/spacy/tests/conftest.py @@ -58,8 +58,9 @@ def en_vocab(): @pytest.fixture -def en_parser(): - return util.get_lang_class('en').Defaults.create_parser() +def en_parser(en_vocab): + nlp = util.get_lang_class('en')(en_vocab) + return nlp.create_pipe('parser') @pytest.fixture