Skip to content

Commit 7415fe9

Browse files
Update exceptions-freq.test
1 parent dce4881 commit 7415fe9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

mypyc/test-data/exceptions-freq.test

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,11 @@ hot blocks: [0, 1]
9999
[case testRareBranch_freq]
100100
from typing import Final
101101

102-
x: Final = str()
102+
def setter() -> str:
103+
# we need this helper to ensure `x` cannot be constant folded
104+
return ""
105+
106+
x: Final = setter()
103107

104108
def f() -> str:
105109
return x

0 commit comments

Comments
 (0)