From c2f56ab3f3dc16f9ebdb1b9d098d75136537bfad Mon Sep 17 00:00:00 2001 From: Javier Vegas Date: Thu, 21 Jun 2018 16:44:47 +0200 Subject: [PATCH] Remove working dir dependency of NCL check test --- tests/unit/test_lint.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/unit/test_lint.py b/tests/unit/test_lint.py index 39c270bf9f..8f484a16ae 100644 --- a/tests/unit/test_lint.py +++ b/tests/unit/test_lint.py @@ -60,7 +60,8 @@ def test_nclcodestyle(): ', '.join(check_paths))) style = nclcodestyle.StyleGuide() - + package_root = os.path.dirname(os.path.dirname(os.path.dirname(__file__))) + check_paths = [os.path.join(package_root, path) for path in check_paths] success = style.check_files(check_paths).total_errors == 0 if not success: