File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 14
14
from executorch .backends .arm .test .tester .arm_tester import ArmTester
15
15
from parameterized import parameterized
16
16
17
- class OpCheckError (Exception ):
18
- pass
19
17
20
18
def test_rescale_op ():
21
19
sample_inputs = [
@@ -65,7 +63,7 @@ def test_nonzero_zp_for_int32():
65
63
),
66
64
]
67
65
for sample_input in sample_inputs :
68
- with pytest .raises (OpCheckError ):
66
+ with pytest .raises (Exception , match = " OpCheckError" ):
69
67
torch .library .opcheck (torch .ops .tosa ._rescale , sample_input )
70
68
71
69
@@ -88,7 +86,7 @@ def test_zp_outside_range():
88
86
),
89
87
]
90
88
for sample_input in sample_inputs :
91
- with pytest .raises (OpCheckError ):
89
+ with pytest .raises (Exception , match = " OpCheckError" ):
92
90
torch .library .opcheck (torch .ops .tosa ._rescale , sample_input )
93
91
94
92
You can’t perform that action at this time.
0 commit comments