Skip to content

Commit 513a008

Browse files
authored
Merge pull request #216 from honno/fix-case-collection
Fix collection of special cases for `>2022.12`
2 parents 9afe8c7 + ca48dd3 commit 513a008

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

array_api_tests/test_special_cases.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -1128,9 +1128,6 @@ def parse_binary_case_block(case_block: str) -> List[BinaryCase]:
11281128
iop_params = []
11291129
func_to_op: Dict[str, str] = {v: k for k, v in dh.op_to_func.items()}
11301130
for stub in category_to_funcs["elementwise"]:
1131-
# if stub.__name__ == "abs":
1132-
# import ipdb; ipdb.set_trace()
1133-
11341131
if stub.__doc__ is None:
11351132
warn(f"{stub.__name__}() stub has no docstring")
11361133
continue
@@ -1177,8 +1174,8 @@ def parse_binary_case_block(case_block: str) -> List[BinaryCase]:
11771174
op = getattr(operator, op_name)
11781175
name_to_func[op_name] = op
11791176
# We collect inplace operator test cases seperately
1180-
if stub.__name__ == "equal":
1181-
break
1177+
if "equal" in stub.__name__:
1178+
continue
11821179
iop_name = "__i" + op_name[2:]
11831180
iop = getattr(operator, iop_name)
11841181
for case in cases:

0 commit comments

Comments
 (0)