From 0f55e5170414d90b048609eb44fbf8f27d085074 Mon Sep 17 00:00:00 2001 From: svlandeg Date: Sun, 23 Feb 2020 16:33:58 +0100 Subject: [PATCH] assert we found the root_dir --- spacy/tests/test_requirements.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spacy/tests/test_requirements.py b/spacy/tests/test_requirements.py index 644e6f8f9..21636766d 100644 --- a/spacy/tests/test_requirements.py +++ b/spacy/tests/test_requirements.py @@ -26,6 +26,8 @@ def test_build_dependencies(en_vocab): if lib and lib not in libs_ignore_requirements: req_dict[lib] = v + assert root_dir is not None, "Could not find the root directory of requirements.txt" + # check setup.cfg and compare to requirements.txt # also fails when there are missing or additional libs setup_file = root_dir / "setup.cfg"