File tree 1 file changed +2
-5
lines changed
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -1128,9 +1128,6 @@ def parse_binary_case_block(case_block: str) -> List[BinaryCase]:
1128
1128
iop_params = []
1129
1129
func_to_op : Dict [str , str ] = {v : k for k , v in dh .op_to_func .items ()}
1130
1130
for stub in category_to_funcs ["elementwise" ]:
1131
- # if stub.__name__ == "abs":
1132
- # import ipdb; ipdb.set_trace()
1133
-
1134
1131
if stub .__doc__ is None :
1135
1132
warn (f"{ stub .__name__ } () stub has no docstring" )
1136
1133
continue
@@ -1177,8 +1174,8 @@ def parse_binary_case_block(case_block: str) -> List[BinaryCase]:
1177
1174
op = getattr (operator , op_name )
1178
1175
name_to_func [op_name ] = op
1179
1176
# We collect inplace operator test cases seperately
1180
- if stub . __name__ == "equal" :
1181
- break
1177
+ if "equal" in stub . __name__ :
1178
+ continue
1182
1179
iop_name = "__i" + op_name [2 :]
1183
1180
iop = getattr (operator , iop_name )
1184
1181
for case in cases :
You can’t perform that action at this time.
0 commit comments