From b1103bdcf1a011356c1230e3dcc46dc118db2c8d Mon Sep 17 00:00:00 2001 From: Erez Sh Date: Mon, 30 Aug 2021 11:28:44 +0100 Subject: [PATCH] Tests: Fixed skipping nearley when it isn't included --- tests/test_nearley/test_nearley.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_nearley/test_nearley.py b/tests/test_nearley/test_nearley.py index 1ad6449..a205446 100644 --- a/tests/test_nearley/test_nearley.py +++ b/tests/test_nearley/test_nearley.py @@ -15,8 +15,8 @@ TEST_PATH = os.path.abspath(os.path.dirname(__file__)) NEARLEY_PATH = os.path.join(TEST_PATH, 'nearley') BUILTIN_PATH = os.path.join(NEARLEY_PATH, 'builtin') -if not os.path.exists(NEARLEY_PATH): - logger.warn("Nearley not installed. Skipping Nearley tests!") +if not os.path.exists(BUILTIN_PATH): + logger.warn("Nearley not included. Skipping Nearley tests! (use git submodule to add)") raise ImportError("Skipping Nearley tests!") import js2py # Ensures that js2py exists, to avoid failing tests