Skip to content

Commit ca48dd3

Browse files
committed
Fix bug collecting all special cases
1 parent 48a8e58 commit ca48dd3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

array_api_tests/test_special_cases.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1174,8 +1174,8 @@ def parse_binary_case_block(case_block: str) -> List[BinaryCase]:
11741174
op = getattr(operator, op_name)
11751175
name_to_func[op_name] = op
11761176
# We collect inplace operator test cases seperately
1177-
if stub.__name__ == "equal":
1178-
break
1177+
if "equal" in stub.__name__:
1178+
continue
11791179
iop_name = "__i" + op_name[2:]
11801180
iop = getattr(operator, iop_name)
11811181
for case in cases:

0 commit comments

Comments
 (0)