#8716 astroid 2.5 and pylint 2.6.2
Closed: fixed 3 years ago by slev. Opened 3 years ago by slev.

With new pylint 2.6.2 Tox task fails on Azure Pipelines:

    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

3 years ago

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)

3 years ago

Login to comment on this ticket.

Metadata