-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a regression test for pylint #73
Following change in the way distutil is stored in setuptools See pylint-dev/astroid#1321
- Loading branch information
1 parent
7d03942
commit 11eba03
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
tests/functional/r/regression_02/regression_distutil_import_error_73.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] |
3 changes: 3 additions & 0 deletions
3
tests/functional/r/regression_02/regression_distutil_import_error_73.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |