diff options
author | Jacob Walls <jacobtylerwalls@gmail.com> | 2021-12-03 17:02:00 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-03 23:02:00 +0100 |
commit | 3ed7a8e3933d14bc6d07afa8e6ba992b5a4b6926 (patch) | |
tree | 29563d184f64be387f5a6dff5b01f1cfd549db5d /tests/test_check_parallel.py | |
parent | 82f0f88c1807eb94eeab2d7670bf930f1850dedd (diff) | |
download | pylint-git-3ed7a8e3933d14bc6d07afa8e6ba992b5a4b6926.tar.gz |
Fix #5371: Correctly count arguments to static methods missing @staticmethod decorator (#5412)
* Fix #5371: Correctly count arguments to static methods missing @staticmethod decorator
* Implementations of MapReduceMixin.reduce_map_data were actually not classmethods
Diffstat (limited to 'tests/test_check_parallel.py')
-rw-r--r-- | tests/test_check_parallel.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_check_parallel.py b/tests/test_check_parallel.py index df493ccb2..d1b5a6489 100644 --- a/tests/test_check_parallel.py +++ b/tests/test_check_parallel.py @@ -20,6 +20,7 @@ from astroid import nodes import pylint.interfaces import pylint.lint.parallel from pylint.checkers.base_checker import BaseChecker +from pylint.checkers.mapreduce_checker import MapReduceMixin from pylint.lint import PyLinter from pylint.lint.parallel import _worker_check_single_file as worker_check_single_file from pylint.lint.parallel import _worker_initialize as worker_initialize @@ -73,7 +74,7 @@ class SequentialTestChecker(BaseChecker): self.data.append(record) -class ParallelTestChecker(BaseChecker): +class ParallelTestChecker(BaseChecker, MapReduceMixin): """A checker that does need to consolidate data. To simulate the need to consolidate data, this checker only |