diff options
author | Jacob Walls <jacobtylerwalls@gmail.com> | 2022-05-09 14:44:05 -0400 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2022-05-13 17:30:49 +0200 |
commit | aecadc276022fe5d445b26aa98e94d3b8df8bc98 (patch) | |
tree | 7c64c619d0c048d296892332dce5e0f3c2488c31 | |
parent | 2d07d4717c77d5b4ee64914127881cec067a69d7 (diff) | |
download | pylint-git-aecadc276022fe5d445b26aa98e94d3b8df8bc98.tar.gz |
Add regression test for #6497 (#6498)
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | doc/whatsnew/2.13.rst | 6 | ||||
-rw-r--r-- | tests/functional/n/no/no_name_in_module.py | 6 |
3 files changed, 17 insertions, 0 deletions
@@ -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 diff --git a/doc/whatsnew/2.13.rst b/doc/whatsnew/2.13.rst index 08c9db2ee..5c1da5a0f 100644 --- a/doc/whatsnew/2.13.rst +++ b/doc/whatsnew/2.13.rst @@ -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 diff --git a/tests/functional/n/no/no_name_in_module.py b/tests/functional/n/no/no_name_in_module.py index 34e8af569..2964d7849 100644 --- a/tests/functional/n/no/no_name_in_module.py +++ b/tests/functional/n/no/no_name_in_module.py @@ -78,3 +78,9 @@ from .no_self_use.bla import lala1 # [no-name-in-module] # 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 |