diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2020-03-13 11:08:59 +0100 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2020-03-13 11:08:59 +0100 |
commit | c9ed11201ff89b93dc8f6cc1bcd2f723c5cfc965 (patch) | |
tree | 421c15ede79e5f9f2467b921cd38df0a8eac1a09 /pylint | |
parent | 5d63f2a13c7aea499ae648fb00d86b43f24a9ba2 (diff) | |
download | pylint-git-c9ed11201ff89b93dc8f6cc1bcd2f723c5cfc965.tar.gz |
Add regression test for unused-argument and raise
Close #3416
Diffstat (limited to 'pylint')
-rw-r--r-- | pylint/testutils.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pylint/testutils.py b/pylint/testutils.py index 9b1d98ed5..91deee01e 100644 --- a/pylint/testutils.py +++ b/pylint/testutils.py @@ -617,6 +617,7 @@ class LintModuleTest: return emitted, omitted def _check_output_text(self, expected_messages, expected_lines, received_lines): + expected_lines = self._split_lines(expected_messages, expected_lines)[0] assert ( - self._split_lines(expected_messages, expected_lines)[0] == received_lines - ), "Error with the following functional test: {}".format(self._test_file.base) + expected_lines == received_lines + ), "Expected test lines did not match for test: {}".format(self._test_file.base) |