From 359f73a96b94a1ae6fcd81f80b9c5fcb3f458821 Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Thu, 12 Jan 2017 12:25:51 +0100 Subject: [PATCH] Move test for #54 to regression tests --- spacy/tests/regression/test_issue54.py | 10 ++++++++++ spacy/tests/spans/test_merge.py | 5 ----- 2 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 spacy/tests/regression/test_issue54.py diff --git a/spacy/tests/regression/test_issue54.py b/spacy/tests/regression/test_issue54.py new file mode 100644 index 000000000..c743715d8 --- /dev/null +++ b/spacy/tests/regression/test_issue54.py @@ -0,0 +1,10 @@ +# coding: utf-8 +from __future__ import unicode_literals + +import pytest + + +@pytest.mark.models +def test_issue54(EN): + text = u'Talks given by women had a slightly higher number of questions asked (3.2$\pm$0.2) than talks given by men (2.6$\pm$0.1).' + tokens = EN(text) diff --git a/spacy/tests/spans/test_merge.py b/spacy/tests/spans/test_merge.py index f96d532cd..b7f0a961e 100644 --- a/spacy/tests/spans/test_merge.py +++ b/spacy/tests/spans/test_merge.py @@ -31,11 +31,6 @@ def test_merge_heads(EN): assert tokens[5].head.i == 4 -@pytest.mark.models -def test_issue_54(EN): - text = u'Talks given by women had a slightly higher number of questions asked (3.2$\pm$0.2) than talks given by men (2.6$\pm$0.1).' - tokens = EN(text) - @pytest.mark.models def test_np_merges(EN):