Skip to content

Commit

Permalink
Raise recursion limit for tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
andialbrecht committed Apr 13, 2024
1 parent b4a39d9 commit 29f2e0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_regressions.py
Expand Up @@ -457,11 +457,11 @@ def test_primary_key_issue740():
@pytest.fixture
def limit_recursion():
curr_limit = sys.getrecursionlimit()
sys.setrecursionlimit(70)
sys.setrecursionlimit(100)
yield
sys.setrecursionlimit(curr_limit)


def test_max_recursion(limit_recursion):
with pytest.raises(SQLParseError):
sqlparse.parse('[' * 100 + ']' * 100)
sqlparse.parse('[' * 1000 + ']' * 1000)

0 comments on commit 29f2e0a

Please sign in to comment.