Skip to content

Pylint 3.1.0 test failure with pytest 7 #9544

Closed as not planned
Closed as not planned
@Thermi

Description

@Thermi

Bug description

Pytest version 7.4.4, pipeline output here: https://gitlab.alpinelinux.org/Thermi/aports/-/jobs/1334679

Test failure during building:


=================================== FAILURES ===================================
____________________ test_functional[recursion_error_3159] _____________________
self = <pylint.testutils.lint_module_test.LintModuleTest object at 0x7f5f8dc01a50>
    def runTest(self) -> None:
>       self._runTest()
E       AssertionError: Wrong message(s) raised for "recursion_error_3159.py":
E       
E       Unexpected in testdata:
E         17: arguments-differ
pylint/testutils/lint_module_test.py:147: AssertionError
=========================== short test summary info ============================
FAILED tests/test_functional.py::test_functional[recursion_error_3159] - AssertionError: Wrong message(s) raised for "recursion_error_3159.py":
Unexpected in testdata:
  17: arguments-differ
====== 1 failed, 1825 passed, 327 skipped, 5 xfailed in 159.26s (0:02:39) ======


### Configuration

_No response_

### Command used

```shell
.testenv/bin/python3 -m pytest --benchmark-disable tests

Pylint output

=================================== FAILURES ===================================
____________________ test_functional[recursion_error_3159] _____________________
self = <pylint.testutils.lint_module_test.LintModuleTest object at 0x7f5f8dc01a50>
    def runTest(self) -> None:
>       self._runTest()
E       AssertionError: Wrong message(s) raised for "recursion_error_3159.py":
E       
E       Unexpected in testdata:
E         17: arguments-differ
pylint/testutils/lint_module_test.py:147: AssertionError
=========================== short test summary info ============================
FAILED tests/test_functional.py::test_functional[recursion_error_3159] - AssertionError: Wrong message(s) raised for "recursion_error_3159.py":
Unexpected in testdata:
  17: arguments-differ
====== 1 failed, 1825 passed, 327 skipped, 5 xfailed in 159.26s (0:02:39) ======

Expected behavior

Test passes

Pylint version

pytest 7.4.4
astroid 3.1.0
python 3.11.8

OS / Environment

Alpine Linux Edge

Additional dependencies

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Cannot reproduce 🤷MaintenanceDiscussion or action around maintaining pylint or the dev workflow

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions