summaryrefslogtreecommitdiff
path: root/tests/functional/r/recursion/recursion_error_crash_2683.py
blob: 05978a355be6284386ca3e881d4c4c9941284f99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
"""Test for https://github.com/PyCQA/pylint/issues/2683"""
# pylint: disable=missing-docstring,too-few-public-methods

class Cls:
    def __init__(self):
        self.count = 5

    def method(self):
        records = []
        for _ in []:
            records += []
        records = records[:self.count]
        records.sort()