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 28c07d6 commit e7a261aCopy full SHA for e7a261a
Lib/test/test_capi/test_opt.py
@@ -2663,8 +2663,9 @@ def f():
2663
def test_interpreter_finalization_with_generator_alive(self):
2664
script_helper.assert_python_ok("-c", textwrap.dedent("""
2665
import sys
2666
+ t = tuple(range(%d))
2667
def simple_for():
- for x in (1, 2):
2668
+ for x in t:
2669
x
2670
2671
def gen():
@@ -2677,7 +2678,7 @@ def gen():
2677
2678
simple_for()
2679
g = gen()
2680
next(g)
- """))
2681
+ """ % _testinternalcapi.SPECIALIZATION_THRESHOLD))
2682
2683
2684
def global_identity(x):
0 commit comments