From 407b08017ea4975f462d7140f9381503d8295840 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Mon, 6 Nov 2017 17:31:40 +0100 Subject: [PATCH] Make test less flakey --- spacy/tests/regression/test_issue781.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/tests/regression/test_issue781.py b/spacy/tests/regression/test_issue781.py index ace7434bc..9d923f244 100644 --- a/spacy/tests/regression/test_issue781.py +++ b/spacy/tests/regression/test_issue781.py @@ -9,4 +9,4 @@ import pytest @pytest.mark.parametrize('word,lemmas', [("chromosomes", ["chromosome"]), ("endosomes", ["endosome"]), ("colocalizes", ["colocaliz", "colocalize"])]) def test_issue781(EN, word, lemmas): lemmatizer = EN.Defaults.create_lemmatizer() - assert lemmatizer(word, 'noun', morphology={'number': 'plur'}) == lemmas + assert lemmatizer(word, 'noun', morphology={'number': 'plur'}) == sorted(lemmas)