summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2020-12-29 10:47:23 +0100
committerClaudiu Popa <pcmanticore@gmail.com>2020-12-29 10:47:23 +0100
commit9a9dbb126c3601bb638f1f195564bcf28c6865dd (patch)
tree1085e32079cf1766c70223f03e3199ba2014a4fa /tests
parent17325f2f7c8cf43f7ae61ba6726b5117cc11066c (diff)
downloadpylint-git-fix-range-without-args-crash.tar.gz
Fix a crash in `consider-using-enumerate` when encountering `range()` without argumentsfix-range-without-args-crash
Close #3735
Diffstat (limited to 'tests')
-rw-r--r--tests/functional/c/consider_using_enumerate.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/functional/c/consider_using_enumerate.py b/tests/functional/c/consider_using_enumerate.py
index cff00aeec..2ac382b18 100644
--- a/tests/functional/c/consider_using_enumerate.py
+++ b/tests/functional/c/consider_using_enumerate.py
@@ -66,3 +66,8 @@ class Good(object):
# Should not suggest enumerate on self
for i in range(len(self)):
yield self[i]
+
+
+def does_not_crash_on_range_without_args():
+ for elem in range():
+ print(elem)