Skip to content

Commit e7a261a

Browse files
Test improvement
1 parent 28c07d6 commit e7a261a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Lib/test/test_capi/test_opt.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2663,8 +2663,9 @@ def f():
26632663
def test_interpreter_finalization_with_generator_alive(self):
26642664
script_helper.assert_python_ok("-c", textwrap.dedent("""
26652665
import sys
2666+
t = tuple(range(%d))
26662667
def simple_for():
2667-
for x in (1, 2):
2668+
for x in t:
26682669
x
26692670
26702671
def gen():
@@ -2677,7 +2678,7 @@ def gen():
26772678
simple_for()
26782679
g = gen()
26792680
next(g)
2680-
"""))
2681+
""" % _testinternalcapi.SPECIALIZATION_THRESHOLD))
26812682

26822683

26832684
def global_identity(x):

0 commit comments

Comments
 (0)