Skip to content

Commit e2871e8

Browse files
committed
Update test case
1 parent 5ed28a7 commit e2871e8

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

mypyc/test-data/lowering-int.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ L4:
332332
L5:
333333
return 4
334334

335-
[case testLowerIntForLoop]
335+
[case testLowerIntForLoop_64bit]
336336
from __future__ import annotations
337337

338338
def f(l: list[int]) -> None:

mypyc/test/test_lowering.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
MypycDataSuite,
1616
assert_test_output,
1717
build_ir_for_single_file,
18+
infer_ir_build_options_from_test_name,
1819
remove_comment_lines,
1920
replace_word_size,
2021
use_custom_builtins,
@@ -31,11 +32,15 @@ class TestLowering(MypycDataSuite):
3132
base_path = test_temp_dir
3233

3334
def run_case(self, testcase: DataDrivenTestCase) -> None:
35+
options = infer_ir_build_options_from_test_name(testcase.name)
36+
if options is None:
37+
# Skipped test case
38+
return
3439
with use_custom_builtins(os.path.join(self.data_prefix, ICODE_GEN_BUILTINS), testcase):
3540
expected_output = remove_comment_lines(testcase.output)
3641
expected_output = replace_word_size(expected_output)
3742
try:
38-
ir = build_ir_for_single_file(testcase.input)
43+
ir = build_ir_for_single_file(testcase.input, options)
3944
except CompileError as e:
4045
actual = e.messages
4146
else:

0 commit comments

Comments
 (0)