aboutsummaryrefslogtreecommitdiff
path: root/tests/functional/u/use/use_a_generator.py
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2021-11-18 15:29:53 -0800
committerDan Albert <danalbert@google.com>2021-11-18 15:29:53 -0800
commit612950b6eae36a543f4645d743f5fd02839c9788 (patch)
tree3031e603522c7cb51097774097abf2ed3dea119a /tests/functional/u/use/use_a_generator.py
parent3c1d8f114801a00b92ab062ceef2244d502bb7ae (diff)
parentd98e6e8adcdc5ebcd9c863f630e748cdba639b0a (diff)
downloadpylint-612950b6eae36a543f4645d743f5fd02839c9788.tar.gz
Merge upstream tag v2.11.1.
Test: None Bug: http://b/206656351 Change-Id: I7831112fa3014bf7998432f9e1ac96be18fca60c
Diffstat (limited to 'tests/functional/u/use/use_a_generator.py')
-rw-r--r--tests/functional/u/use/use_a_generator.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/functional/u/use/use_a_generator.py b/tests/functional/u/use/use_a_generator.py
new file mode 100644
index 000000000..279deb46f
--- /dev/null
+++ b/tests/functional/u/use/use_a_generator.py
@@ -0,0 +1,11 @@
+# pylint: disable=missing-docstring, invalid-name
+# https://github.com/PyCQA/pylint/issues/3165
+
+any([])
+all([])
+
+any([0 for x in list(range(10))]) # [use-a-generator]
+all([0 for y in list(range(10))]) # [use-a-generator]
+
+any(0 for x in list(range(10)))
+all(0 for y in list(range(10)))