Skip to content

Commit

Permalink
Add a regression test for pylint #73
Browse files Browse the repository at this point in the history
Following change in the way distutil is stored in setuptools

See pylint-dev/astroid#1321
  • Loading branch information
Pierre-Sassoulas committed Dec 31, 2021
1 parent 956af8a commit 9a6afd3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
"""
Regression test to check that distutils can be imported
See https://github.com/PyCQA/pylint/issues/73
See also:
https://github.com/PyCQA/pylint/issues/2955
https://github.com/PyCQA/astroid/pull/1321
"""

# pylint: disable=unused-import

import distutils.version
from distutils.util import strtobool
from distutils import doesnottexists # [no-name-in-module]
from distutils.doesnottexists import nope # [no-name-in-module, import-error]
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
no-name-in-module:14:0:14:36::No name 'doesnottexists' in module 'distutils':UNDEFINED
import-error:15:0:15:41::Unable to import 'distutils.doesnottexists':UNDEFINED
no-name-in-module:15:0:15:41::No name 'doesnottexists' in module 'distutils':UNDEFINED

0 comments on commit 9a6afd3

Please sign in to comment.