summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2019-07-21 19:27:18 +0200
committerClaudiu Popa <pcmanticore@gmail.com>2019-09-10 11:20:15 +0200
commit676ec55ff9d8f10e52b740a57e4e62a3255d6709 (patch)
tree27010239a4d190bf140e81018b4408883bf4a762
parent3ac820926b4ca387517d10a6d5d1f1c355e943be (diff)
downloadpylint-git-676ec55ff9d8f10e52b740a57e4e62a3255d6709.tar.gz
[functional tests] Clearer fatal fail error message
-rw-r--r--tests/test_functional.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_functional.py b/tests/test_functional.py
index 0025253ea..b7d7be211 100644
--- a/tests/test_functional.py
+++ b/tests/test_functional.py
@@ -313,13 +313,15 @@ class LintModuleTest(object):
received_msgs = collections.Counter()
received_output_lines = []
for msg in messages:
+ assert (
+ msg.symbol != "fatal"
+ ), "Pylint analysis failed because of '{}'".format(msg.msg)
received_msgs[msg.line, msg.symbol] += 1
received_output_lines.append(OutputLine.from_msg(msg))
return received_msgs, received_output_lines
def _runTest(self):
self._linter.check([self._test_file.module])
-
expected_messages, expected_text = self._get_expected()
received_messages, received_text = self._get_received()