mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
GH-94329: Don't raise on excessive stack consumption (GH-94421) (GH-94446)
(cherry picked from commit b152bf448b
)
This commit is contained in:
parent
48a739ec10
commit
f58c366a73
3 changed files with 9 additions and 6 deletions
|
@ -1207,6 +1207,12 @@ class TestExpressionStackSize(unittest.TestCase):
|
|||
code += " x and x\n" * self.N
|
||||
self.check_stack_size(code)
|
||||
|
||||
def test_stack_3050(self):
|
||||
M = 3050
|
||||
code = "x," * M + "=t"
|
||||
# This raised on 3.10.0 to 3.10.5
|
||||
compile(code, "<foo>", "single")
|
||||
|
||||
|
||||
class TestStackSizeStability(unittest.TestCase):
|
||||
# Check that repeating certain snippets doesn't increase the stack size
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue