Skip to content

Commit e933be9

Browse files
committed
Fix internal parsing docstring examples
1 parent 9ef6d69 commit e933be9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

array_api_tests/test_special_cases.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ def parse_unary_case_block(case_block: str) -> List[UnaryCase]:
634634
... an array containing the square root of each element in ``x``
635635
... '''
636636
...
637-
>>> case_block = r_case_block.match(sqrt.__doc__).group(1)
637+
>>> case_block = r_case_block.search(sqrt.__doc__).group(1)
638638
>>> unary_cases = parse_unary_case_block(case_block)
639639
>>> for case in unary_cases:
640640
... print(repr(case))
@@ -1094,7 +1094,7 @@ def parse_binary_case_block(case_block: str) -> List[BinaryCase]:
10941094
... an array containing the results
10951095
... '''
10961096
...
1097-
>>> case_block = r_case_block.match(logaddexp.__doc__).group(1)
1097+
>>> case_block = r_case_block.search(logaddexp.__doc__).group(1)
10981098
>>> binary_cases = parse_binary_case_block(case_block)
10991099
>>> for case in binary_cases:
11001100
... print(repr(case))

0 commit comments

Comments
 (0)