With new pylint 2.6.2 Tox task fails on Azure Pipelines:
Tox
result = (True, func(*args, **kwds)) File "/__w/1/s/.tox/pylint3/lib/python3.8/site-packages/pylint/lint/check_parallel.py", line 69, in _worker_check_single_file _worker_linter.check_single_file(name, filepath, modname) File "/__w/1/s/.tox/pylint3/lib/python3.8/site-packages/pylint/lint/pylinter.py", line 881, in check_single_file self._check_file( File "/__w/1/s/.tox/pylint3/lib/python3.8/site-packages/pylint/lint/pylinter.py", line 922, in _check_file check_astroid_module(ast_node) File "/__w/1/s/.tox/pylint3/lib/python3.8/site-packages/pylint/lint/pylinter.py", line 1054, in check_astroid_module retval = self._check_astroid_module( File "/__w/1/s/.tox/pylint3/lib/python3.8/site-packages/pylint/lint/pylinter.py", line 1099, in _check_astroid_module walker.walk(ast_node) File "/__w/1/s/.tox/pylint3/lib/python3.8/site-packages/pylint/utils/ast_walker.py", line 75, in walk self.walk(child) File "/__w/1/s/.tox/pylint3/lib/python3.8/site-packages/pylint/utils/ast_walker.py", line 75, in walk self.walk(child) File "/__w/1/s/.tox/pylint3/lib/python3.8/site-packages/pylint/utils/ast_walker.py", line 72, in walk callback(astroid) File "/__w/1/s/.tox/pylint3/lib/python3.8/site-packages/pylint/checkers/refactoring/refactoring_checker.py", line 1039, in visit_boolop self._check_simplifiable_condition(node) File "/__w/1/s/.tox/pylint3/lib/python3.8/site-packages/pylint/checkers/refactoring/refactoring_checker.py", line 1006, in _check_simplifiable_condition if not utils.is_test_condition(node): AttributeError: module 'pylint.checkers.utils' has no attribute 'is_test_condition'
Metadata Update from @slev: - Issue assigned to slev
Regression in Pylint: https://github.com/PyCQA/pylint/issues/4097
The issue was related to Pylint 2.6.1 only, which required "astroid>=2.4.0,<=2.5". Pylint 2.6.2 pinned "astroid>=2.4.0,<2.5".
Fixed in Pylint 2.6.2.
Metadata Update from @slev: - Issue close_status updated to: fixed - Issue status updated to: Closed (was: Open)
Login to comment on this ticket.