From abb09782f95f6bea71212e565459cef5516c6b53 Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Sun, 8 Jan 2017 20:32:54 +0100 Subject: [PATCH] Move sun.txt to original location and fix path to not break parser tests --- spacy/tests/{tokenizer => }/sun.txt | 0 spacy/tests/tokenizer/test_tokenizer.py | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename spacy/tests/{tokenizer => }/sun.txt (100%) diff --git a/spacy/tests/tokenizer/sun.txt b/spacy/tests/sun.txt similarity index 100% rename from spacy/tests/tokenizer/sun.txt rename to spacy/tests/sun.txt diff --git a/spacy/tests/tokenizer/test_tokenizer.py b/spacy/tests/tokenizer/test_tokenizer.py index cd0043a10..9db007d7e 100644 --- a/spacy/tests/tokenizer/test_tokenizer.py +++ b/spacy/tests/tokenizer/test_tokenizer.py @@ -67,7 +67,7 @@ Phasellus tincidunt, augue quis porta finibus, massa sapien consectetur augue, n @pytest.mark.parametrize('file_name', ["sun.txt"]) def test_tokenizer_handle_text_from_file(tokenizer, file_name): - loc = path.join(path.dirname(__file__), file_name) + loc = path.join(path.dirname(__file__), '..', file_name) text = utf8open(loc).read() assert len(text) != 0 tokens = tokenizer(text)