Skip to content

Commit

Permalink
Add regression test for #6497 (#6498)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtylerwalls authored and Pierre-Sassoulas committed May 9, 2022
1 parent 31909c7 commit f1971bf
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Expand Up @@ -20,6 +20,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

0 comments on commit f1971bf

Please sign in to comment.