summaryrefslogtreecommitdiff
path: root/tests/test_self.py
diff options
context:
space:
mode:
authorJacob Walls <jacobtylerwalls@gmail.com>2021-12-14 14:38:35 -0500
committerGitHub <noreply@github.com>2021-12-14 20:38:35 +0100
commitaf8cc2e75018d34fbbed08d4bfa3380e80f89b4d (patch)
tree822b0a2912a912a61a07ace0028d53e3bcd12ab2 /tests/test_self.py
parent80e43a95da6fd3dc5882f7c77d3fb13b2666df4e (diff)
downloadpylint-git-af8cc2e75018d34fbbed08d4bfa3380e80f89b4d.tar.gz
Produce a score of 0 for fatal errors and add fatal to score evaluation (#5521)
Co-authored-by: Daniƫl van Noord <13665637+DanielNoord@users.noreply.github.com>
Diffstat (limited to 'tests/test_self.py')
-rw-r--r--tests/test_self.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_self.py b/tests/test_self.py
index ebdb91443..27bf17cf6 100644
--- a/tests/test_self.py
+++ b/tests/test_self.py
@@ -1154,6 +1154,14 @@ class TestRunTC:
# and errors that are generated they don't affect the exit code.
self._runtest([path, "--fail-under=-10"] + args, code=expected)
+ def test_one_module_fatal_error(self):
+ """
+ Fatal errors in one of several modules linted still exits non-zero.
+ """
+ valid_path = join(HERE, "conftest.py")
+ invalid_path = join(HERE, "garbagePath.py")
+ self._runtest([valid_path, invalid_path], code=1)
+
@pytest.mark.parametrize(
"args, expected",
[