diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-01-17 16:39:04 +0100 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-01-24 10:16:38 +0100 |
commit | f4993a54b99c581c30810c9af1fcb702a0480b90 (patch) | |
tree | a8349cff0f72f8312a9966741e9226a6b8ec7466 /tests | |
parent | de8b5a2a3369f1bf4a3e81aa9a466dd40505ed35 (diff) | |
download | pylint-git-f4993a54b99c581c30810c9af1fcb702a0480b90.tar.gz |
Permit to update malformatted functional tests
Before that an error while reading the file would make the update fail
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_functional.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/test_functional.py b/tests/test_functional.py index 9e558723a..1f31ed65a 100644 --- a/tests/test_functional.py +++ b/tests/test_functional.py @@ -20,7 +20,6 @@ # For details: https://github.com/PyCQA/pylint/blob/master/COPYING """Functional full-module tests for PyLint.""" - import csv import os import sys @@ -48,6 +47,11 @@ class LintModuleOutputUpdate(testutils.LintModuleTest): csv.register_dialect("test", TestDialect) + def _get_expected(self): + with self._open_source_file() as f: + expected_msgs = self.get_expected_messages(f) + return expected_msgs, [] + def _check_output_text(self, _, expected_output, actual_output): if expected_output == actual_output: return |