From 2a6bd2818f581b385da3f9871d13663454507781 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Tue, 9 Dec 2014 15:18:43 +1100 Subject: [PATCH] * Load the lexicon before we check flag values --- tests/test_lexeme_flags.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_lexeme_flags.py b/tests/test_lexeme_flags.py index 10276d8ea..c1fe2d847 100644 --- a/tests/test_lexeme_flags.py +++ b/tests/test_lexeme_flags.py @@ -7,6 +7,7 @@ from spacy.lexeme import * def test_is_alpha(): + EN.load() the = EN.lexicon['the'] assert the['flags'] & (1 << IS_ALPHA) year = EN.lexicon['1999'] @@ -16,6 +17,7 @@ def test_is_alpha(): def test_is_digit(): + EN.load() the = EN.lexicon['the'] assert not the['flags'] & (1 << IS_DIGIT) year = EN.lexicon['1999']