diff --git a/array_api_tests/test_special_cases.py b/array_api_tests/test_special_cases.py index cd9c81ba..4bc3cc69 100644 --- a/array_api_tests/test_special_cases.py +++ b/array_api_tests/test_special_cases.py @@ -1128,9 +1128,6 @@ def parse_binary_case_block(case_block: str) -> List[BinaryCase]: iop_params = [] func_to_op: Dict[str, str] = {v: k for k, v in dh.op_to_func.items()} for stub in category_to_funcs["elementwise"]: - # if stub.__name__ == "abs": - # import ipdb; ipdb.set_trace() - if stub.__doc__ is None: warn(f"{stub.__name__}() stub has no docstring") continue @@ -1177,8 +1174,8 @@ def parse_binary_case_block(case_block: str) -> List[BinaryCase]: op = getattr(operator, op_name) name_to_func[op_name] = op # We collect inplace operator test cases seperately - if stub.__name__ == "equal": - break + if "equal" in stub.__name__: + continue iop_name = "__i" + op_name[2:] iop = getattr(operator, iop_name) for case in cases: