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

Add regression test for #6497 #6498

Merged
merged 6 commits into from May 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions ChangeLog
Expand Up @@ -307,6 +307,11 @@ What's New in Pylint 2.13.9?
============================
Release date: TBA


* Fix false positives for ``no-name-in-module`` and ``import-error`` for ``numpy.distutils`` and ``pydantic``.

Closes #6497

* Fix ``IndexError`` crash in ``uninferable_final_decorators`` method.

Relates to #6531
Expand Down
6 changes: 6 additions & 0 deletions doc/whatsnew/2.13.rst
Expand Up @@ -644,6 +644,12 @@ Other Changes

Closes #6414


* Fix false positives for ``no-name-in-module`` and ``import-error`` for ``numpy.distutils``
and ``pydantic``.

Closes #6497

* Fix ``IndexError`` crash in ``uninferable_final_decorators`` method.

Relates to #6531
6 changes: 6 additions & 0 deletions tests/functional/n/no/no_name_in_module.py
Expand Up @@ -78,3 +78,9 @@

# Check ignored-modules setting
from argparse import THIS_does_not_EXIST


# This captures the original failure in https://github.com/PyCQA/pylint/issues/6497
# only if numpy is installed. We are not installing numpy on CI (for now)
from numpy.distutils.misc_util import is_sequence
from pydantic import BaseModel