Skip to content

Fix collection of special cases for >2022.12 #216

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions array_api_tests/test_special_cases.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down