summaryrefslogtreecommitdiff
path: root/tests/functional/r/recursion/recursion_error_crash_2683.py
blob: 17335de2bc6e78938a16371ba47d0a1817b936a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
"""Test for https://github.com/pylint-dev/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()