diff options
Diffstat (limited to 'tests/functional')
-rw-r--r-- | tests/functional/c/consider_using_enumerate.py | 5 |
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)
|