Skip to content

Commit 22524d2

Browse files
Add a negative regression tests and rename file
1 parent f6344fa commit 22524d2

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

tests/functional/d/distutil_regression_import_error.py renamed to tests/functional/r/regression_02/regression_distutil_import_error_73.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66
https://github.com/PyCQA/pylint/issues/2955
77
https://github.com/PyCQA/astroid/pull/1321
88
"""
9+
10+
# pylint: disable=unused-import
11+
912
import distutils.version
1013
from distutils.util import strtobool
11-
12-
print(distutils.version)
13-
print(strtobool)
14+
from distutils import doesnottexists # [no-name-in-module]
15+
from distutils.doesnottexists import nope # [no-name-in-module, import-error]
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
no-name-in-module:14:0:14:36::No name 'doesnottexists' in module 'distutils':UNDEFINED
2+
import-error:15:0:15:41::Unable to import 'distutils.doesnottexists':UNDEFINED
3+
no-name-in-module:15:0:15:41::No name 'doesnottexists' in module 'distutils':UNDEFINED

0 commit comments

Comments
 (0)