We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e3778e commit dbfde30Copy full SHA for dbfde30
tests/functional/i/inference_crash_4692.py
@@ -1,7 +1,9 @@
1
"""Regression test for https://github.com/PyCQA/pylint/issues/4692."""
2
3
-import click # [import-error]
+# We can't use click like in the issue because the crash
4
+# does not appear if click is installed (astroid can analyse it)
5
+import notclick # [import-error]
6
7
-for name, item in click.__dict__.items():
- _ = isinstance(item, click.Command) and item != 'foo'
8
+for name, item in notclick.__dict__.items():
9
+ _ = isinstance(item, notclick.Command) and item != 'foo'
tests/functional/i/inference_crash_4692.txt
@@ -1 +1 @@
-import-error:3:0::Unable to import 'click':HIGH
+import-error:5:0::Unable to import 'notclick':HIGH
0 commit comments