Skip to content

Commit

Permalink
adjust limits
Browse files Browse the repository at this point in the history
  • Loading branch information
fjetter committed Mar 10, 2023
1 parent a6a174d commit 68f48cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions distributed/tests/test_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ def test_call_stack_f_lineno(f_lasti: int, f_lineno: int) -> None:

def test_stack_overflow():
old = sys.getrecursionlimit()
sys.setrecursionlimit(200)
sys.setrecursionlimit(300)
try:
state = create()
frame = None
Expand All @@ -370,7 +370,7 @@ def f(i):
else:
return f(i - 1)

f(sys.getrecursionlimit() - 200)
f(sys.getrecursionlimit() - 100)
process(frame, None, state)
assert state["children"]
assert state["count"]
Expand Down

0 comments on commit 68f48cf

Please sign in to comment.