Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pylint 3.1.0 test failure with pytest 7 #9544

Closed
Thermi opened this issue Apr 8, 2024 · 2 comments
Closed

Pylint 3.1.0 test failure with pytest 7 #9544

Thermi opened this issue Apr 8, 2024 · 2 comments
Labels
Cannot reproduce 🤷 Maintenance Discussion or action around maintaining pylint or the dev workflow

Comments

@Thermi
Copy link

Thermi commented Apr 8, 2024

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

@Thermi Thermi added the Needs triage 📥 Just created, needs acknowledgment, triage, and proper labelling label Apr 8, 2024
@Pierre-Sassoulas Pierre-Sassoulas added Work in progress Maintenance Discussion or action around maintaining pylint or the dev workflow and removed Needs triage 📥 Just created, needs acknowledgment, triage, and proper labelling labels Apr 11, 2024
@Pierre-Sassoulas
Copy link
Member

Will be closed in #9483

@Pierre-Sassoulas
Copy link
Member

Closing as I cannot reproduce. I've seen that there's an issue but for pytest 8.0.0+ only (see #9576 (comment))

@Pierre-Sassoulas Pierre-Sassoulas closed this as not planned Won't fix, can't repro, duplicate, stale May 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Cannot reproduce 🤷 Maintenance Discussion or action around maintaining pylint or the dev workflow
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants