Skip to content

Commit de39f1a

Browse files
Update irbuild-tuple.test
1 parent 7da0e83 commit de39f1a

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

mypyc/test-data/irbuild-tuple.test

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -742,16 +742,13 @@ L4:
742742
return 1
743743

744744
[case testTupleBuiltFromFinalFixedLengthTuple]
745-
from typing import Final, Literal
745+
from typing import Final
746746

747747
def varint() -> int:
748748
# this helper lets us break constant folding for this test
749749
return 2
750-
def varint_check() -> Literal[10]:
751-
# this helper lets us make sure a literal hint is not honored if not certain
752-
return 4
753750

754-
source: Final = (1, varint(), 3, varint_check())
751+
source: Final = (1, varint(), 3)
755752

756753
def f(val: int) -> bool:
757754
return val % 2 == 0
@@ -762,9 +759,6 @@ def test() -> None:
762759
def varint():
763760
L0:
764761
return 4
765-
def varint_check():
766-
L0:
767-
return 8
768762
def f(val):
769763
val, r0 :: int
770764
r1 :: bit
@@ -773,7 +767,7 @@ L0:
773767
r1 = int_eq r0, 0
774768
return r1
775769
def test():
776-
r0 :: tuple[int, int, int, int]
770+
r0 :: tuple[int, int, int]
777771
r1 :: bool
778772
r2 :: object
779773
r3 :: native_int

0 commit comments

Comments
 (0)