From 48a8e5866120feb0c14e302202463d95fa6b439c Mon Sep 17 00:00:00 2001 From: Matthew Barber Date: Fri, 24 Nov 2023 10:06:54 +0000 Subject: [PATCH 1/2] Remove debug statement --- array_api_tests/test_special_cases.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/array_api_tests/test_special_cases.py b/array_api_tests/test_special_cases.py index cd9c81ba..7f6af95d 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 From ca48dd35ea140b62c24c29ec161c9115ead0cb60 Mon Sep 17 00:00:00 2001 From: Matthew Barber Date: Fri, 24 Nov 2023 13:38:58 +0000 Subject: [PATCH 2/2] Fix bug collecting all special cases --- array_api_tests/test_special_cases.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/array_api_tests/test_special_cases.py b/array_api_tests/test_special_cases.py index 7f6af95d..4bc3cc69 100644 --- a/array_api_tests/test_special_cases.py +++ b/array_api_tests/test_special_cases.py @@ -1174,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: