-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
MaintenanceDiscussion or action around maintaining pylint or the dev workflowDiscussion or action around maintaining pylint or the dev workflowNeeds PRThis issue is accepted, sufficiently specified and now needs an implementationThis issue is accepted, sufficiently specified and now needs an implementation
Description
Bug description
The message counter is checked first before the output text, so we never have a chance to write the updated output file.
Need to flip these two statements:
pylint/pylint/testutils/lint_module_test.py
Lines 256 to 261 in 86e1943
assert ( | |
expected_messages == actual_messages | |
), self.error_msg_for_unequal_messages( | |
actual_messages, expected_messages, actual_output | |
) | |
self._check_output_text(expected_messages, expected_output, actual_output) |
so this has a chance to run:
pylint/pylint/testutils/functional/lint_module_output_update.py
Lines 27 to 32 in 86e1943
def _check_output_text( | |
self, | |
_: MessageCounter, | |
expected_output: list[OutputLine], | |
actual_output: list[OutputLine], | |
) -> None: |
Configuration
No response
Command used
python tests/test_functional.py -k abstract --update-functional-output
Pylint output
Failure, depending on if you change the refs
Expected behavior
You can update the refs
Pylint version
pylint 3.3.0-dev0
astroid 3.2.2
Python 3.11.4 (main, Jul 20 2023, 22:46:38) [GCC 9.4.0]
OS / Environment
Ubuntu 20.04
Additional dependencies
No response
Metadata
Metadata
Assignees
Labels
MaintenanceDiscussion or action around maintaining pylint or the dev workflowDiscussion or action around maintaining pylint or the dev workflowNeeds PRThis issue is accepted, sufficiently specified and now needs an implementationThis issue is accepted, sufficiently specified and now needs an implementation