!48380 Modify fallback testcase

Merge pull request !48380 from huangbingjian/fix_testcase
This commit is contained in:
i-robot 2023-02-03 06:15:33 +00:00 committed by Gitee
commit 20bbbd4d89
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 3 additions and 4 deletions

View File

@ -42,7 +42,7 @@ def test_single_for_1():
assert res == 21
@case_register.level1
@case_register.level0
@case_register.target_gpu
@case_register.target_ascend
def test_single_for_2():
@ -59,9 +59,8 @@ def test_single_for_2():
y += x
return y
with pytest.raises(RuntimeError, match="The type of inputs in range operator only support int64 number."):
res = control_flow_for()
assert res == 21
with pytest.raises(TypeError, match="the 0th input should be a int64 scalar"):
control_flow_for()
@case_register.level1