From 661e4cdf37bba447bdf51180c1997f7c720ca39a Mon Sep 17 00:00:00 2001 From: Pierre Sassoulas Date: Sat, 10 Jul 2021 23:10:20 +0200 Subject: [PATCH] [#4692] Add a regression test for inference crash --- tests/functional/i/inference_crash_4692.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 tests/functional/i/inference_crash_4692.py diff --git a/tests/functional/i/inference_crash_4692.py b/tests/functional/i/inference_crash_4692.py new file mode 100644 index 00000000000..5b21fb9f1f9 --- /dev/null +++ b/tests/functional/i/inference_crash_4692.py @@ -0,0 +1,7 @@ +"""Regression test for https://github.com/PyCQA/pylint/issues/4692.""" + +import click + + +for name, item in click.__dict__.items(): + _ = isinstance(item, click.Command) and item != 'foo'