Skip to content

Commit 52837bb

Browse files
Update run-strings.test
1 parent d3c94af commit 52837bb

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

mypyc/test-data/run-strings.test

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def test_unicode() -> None:
151151
assert ne("\U0001f4a9foo", "\U0001f4a8foo" + str())
152152

153153
[case testStringOps]
154-
from typing import Final, List, Optional, Tuple
154+
from typing import List, Optional, Tuple
155155
from testutil import assertRaises
156156

157157
def do_split(s: str, sep: Optional[str] = None, max_split: Optional[int] = None) -> List[str]:
@@ -226,12 +226,6 @@ def contains(s: str, o: str) -> bool:
226226
def getitem(s: str, index: int) -> str:
227227
return s[index]
228228

229-
final_string: Final = "abc"
230-
final_int: Final = 1
231-
232-
def getitem_folded() -> str:
233-
return final_string[final_int] + final_string[-1]
234-
235229
def find(s: str, substr: str, start: Optional[int] = None, end: Optional[int] = None) -> int:
236230
if start is not None:
237231
if end is not None:
@@ -269,7 +263,6 @@ def test_getitem() -> None:
269263
getitem(s, 4)
270264
with assertRaises(IndexError, "string index out of range"):
271265
getitem(s, -4)
272-
assert getitem_folded() == "bc"
273266

274267
def test_find() -> None:
275268
s = "abcab"

0 commit comments

Comments
 (0)