Skip to content

Commit

Permalink
Add test that a recursion error does not happen any longer. Close pyl…
Browse files Browse the repository at this point in the history
  • Loading branch information
PCManticore committed Jan 20, 2019
1 parent 6b85128 commit bc4b56e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions pylint/test/functional/recursion_error_crash_2683.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,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()
Empty file.

0 comments on commit bc4b56e

Please sign in to comment.