We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b4ffb0 commit 027bc7eCopy full SHA for 027bc7e
Lib/test/test_compile.py
@@ -1645,6 +1645,13 @@ def test_stack_3050(self):
1645
# This raised on 3.10.0 to 3.10.5
1646
compile(code, "<foo>", "single")
1647
1648
+ def test_stack_3050_2(self):
1649
+ M = 3050
1650
+ args = ", ".join(f"arg{i}:type{i}" for i in range(M))
1651
+ code = f"def f({args}):\n pass"
1652
+ # This raised on 3.10.0 to 3.10.5
1653
+ compile(code, "<foo>", "single")
1654
+
1655
1656
class TestStackSizeStability(unittest.TestCase):
1657
# Check that repeating certain snippets doesn't increase the stack size
0 commit comments