summaryrefslogtreecommitdiff
path: root/tests/functional/r/recursion/recursion_error_2906.py
blob: 6b4b08d5f95e7b13d545999dfd850500e16d6a70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
"""Recursion error for https://github.com/PyCQA/pylint/issues/2906"""
# pylint: disable=disallowed-name,global-statement,invalid-name,missing-docstring
lst = []


def foo():
    lst.append(0)


def bar():
    global lst

    length = len(lst)
    lst += [length]