============================= test session starts ============================== platform linux -- Python 3.10.1, pytest-6.2.5, py-1.11.0, pluggy-0.13.1 rootdir: /build/python-pylint/src/pylint-2.12.2, configfile: setup.cfg, testpaths: tests collected 1573 items / 11 deselected / 1562 selected tests/test_check_parallel.py ........................................... [ 2%] .. [ 2%] tests/test_epylint.py .. [ 3%] tests/test_func.py ............ [ 3%] tests/test_functional.py .....................s......................... [ 6%] .............................................s..s....................... [ 11%] ......s.ss....ss................s...s......................s.s.....ss... [ 16%] .................................s...................................... [ 20%] ........................................................F............... [ 25%] ........................................................................ [ 29%] ..................................................................s..... [ 34%] ....................s........s......s................................... [ 39%] ..................ss.s.......................s...............s.......... [ 43%] ...................... [ 45%] tests/test_import_graph.py ...... [ 45%] tests/test_numversion.py ........... [ 46%] tests/test_pragma_parser.py ............ [ 46%] tests/test_pylint_runners.py .... [ 47%] tests/test_regr.py ................... [ 48%] tests/test_self.py ..................................................... [ 51%] ................................................... [ 55%] tests/unittest_reporters_json.py .. [ 55%] tests/unittest_reporting.py ......... [ 55%] tests/checkers/unittest_base.py .........s [ 56%] tests/checkers/unittest_base_checker.py . [ 56%] tests/checkers/unittest_deprecated.py ........................ [ 58%] tests/checkers/unittest_design.py ... [ 58%] tests/checkers/unittest_format.py ......... [ 58%] tests/checkers/unittest_imports.py ...... [ 59%] tests/checkers/unittest_misc.py .......... [ 59%] tests/checkers/unittest_refactoring.py . [ 59%] tests/checkers/unittest_similar.py .................. [ 61%] tests/checkers/unittest_spelling.py ssssssssssssssssssssssssssssssssss [ 63%] tests/checkers/unittest_stdlib.py . [ 63%] tests/checkers/unittest_strings.py . [ 63%] tests/checkers/unittest_typecheck.py ss. [ 63%] tests/checkers/unittest_utils.py ...................................... [ 65%] tests/checkers/unittest_variables.py .......... [ 66%] tests/config/test_config.py . [ 66%] tests/config/test_functional_config_loading.py ............... [ 67%] tests/config/unittest_config.py ........ [ 68%] tests/extensions/test_check_docs.py .................................... [ 70%] ...................................................... [ 73%] tests/extensions/test_check_docs_utils.py .............. [ 74%] tests/extensions/test_confusing_elif.py ........ [ 75%] tests/extensions/test_while_used.py . [ 75%] tests/functional/r/redundant_unittest_assert.py ss [ 75%] tests/lint/test_pylinter.py .. [ 75%] tests/lint/test_utils.py .. [ 75%] tests/lint/unittest_expand_modules.py ..... [ 76%] tests/lint/unittest_lint.py ............................................ [ 78%] ...... [ 79%] tests/message/unittest_message.py . [ 79%] tests/message/unittest_message_definition.py ...... [ 79%] tests/message/unittest_message_definition_store.py ................. [ 80%] tests/message/unittest_message_id_store.py ....... [ 81%] tests/primer/test_primer_external.py sssssssssss [ 81%] tests/primer/test_primer_stdlib.py sssssssssssssssssssssssssssssssssssss [ 84%] ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 88%] ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 93%] ssssssssssssssssss [ 94%] tests/profile/test_profile_against_externals.py s [ 94%] tests/pyreverse/test_diadefs.py ......... [ 95%] tests/pyreverse/test_diagrams.py . [ 95%] tests/pyreverse/test_inspector.py ........ [ 95%] tests/pyreverse/test_main.py .. [ 96%] tests/pyreverse/test_printer.py ............. [ 96%] tests/pyreverse/test_printer_factory.py ..... [ 97%] tests/pyreverse/test_utils.py .................. [ 98%] tests/pyreverse/test_writer.py ........... [ 99%] tests/testutils/test_configuration_test.py . [ 99%] tests/testutils/test_output_line.py ........ [ 99%] tests/testutils/test_package_to_lint.py .. [ 99%] tests/utils/unittest_ast_walker.py .. [ 99%] tests/utils/unittest_utils.py .. [100%] =================================== FAILURES =================================== ___________________________ test_functional[mccabe] ____________________________ self = def runTest(self) -> None: > self._runTest() E AssertionError: Wrong results for file "mccabe": E E Expected in testdata: E 9: too-complex E 14: too-complex E 21: too-complex E 31: too-complex E 37: too-complex E 45: too-complex E 53: too-complex E 68: too-complex E 80: too-complex E 106: too-complex E 138: too-complex E 142: too-complex E 198: too-complex E 207: too-complex build/lib/pylint/testutils/lint_module_test.py:88: AssertionError =============================== warnings summary =============================== ../../../../usr/lib/python3.10/site-packages/packaging/version.py:111: 358 warnings /usr/lib/python3.10/site-packages/packaging/version.py:111: DeprecationWarning: Creating a LegacyVersion has been deprecated and will be removed in the next major release warnings.warn( ../../../../usr/lib/python3.10/site-packages/astroid/modutils.py:53 /usr/lib/python3.10/site-packages/astroid/modutils.py:53: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives from distutils.errors import DistutilsPlatformError # pylint: disable=import-error ../../../../usr/lib/python3.10/site-packages/astroid/modutils.py:54 /usr/lib/python3.10/site-packages/astroid/modutils.py:54: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead from distutils.sysconfig import get_python_lib # pylint: disable=import-error tests/test_import_graph.py: 26 warnings tests/test_pylint_runners.py: 2 warnings tests/test_regr.py: 22 warnings tests/unittest_reporting.py: 1 warning tests/checkers/unittest_format.py: 1 warning tests/checkers/unittest_variables.py: 2 warnings tests/lint/test_pylinter.py: 2 warnings tests/lint/unittest_lint.py: 1 warning /usr/lib/python3.10/site-packages/astroid/nodes/scoped_nodes/scoped_nodes.py:686: DeprecationWarning: In astroid 3.0.0 NodeNG.statement() will return either a nodes.Statement or raise a StatementMissing exception. nodes.Module will no longer be considered a statement. This behaviour can already be triggered by passing 'future=True' to a statement() call. warnings.warn( -- Docs: https://docs.pytest.org/en/stable/warnings.html =========================== short test summary info ============================ FAILED tests/test_functional.py::test_functional[mccabe] - AssertionError: Wr... = 1 failed, 1287 passed, 274 skipped, 11 deselected, 417 warnings in 597.30s (0:09:57) = ==> ERROR: A failure occurred in check().  Aborting...