Skip to content

Commit 2eefeb3

Browse files
committed
fix review idea
Signed-off-by: Manjusaka <me@manjusaka.me>
1 parent 6b5282f commit 2eefeb3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_capi/test_opt.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1927,11 +1927,11 @@ def testfunc(n):
19271927

19281928
def test_get_len_with_const_tuple(self):
19291929
def testfunc(n):
1930-
x = ""
1930+
x = 0.0
19311931
for _ in range(n):
19321932
match (1, 2, 3, 4):
19331933
case [_, _, _, _]:
1934-
x += "1"
1934+
x += 1.0
19351935
return x
19361936
res, ex = self._run_with_optimizer(testfunc, TIER2_THRESHOLD)
19371937
self.assertEqual(len(res), TIER2_THRESHOLD)

0 commit comments

Comments
 (0)