Skip to content

Commit 7dca729

Browse files
committed
Give the correct error message for linear algebra functions
1 parent 1eace5d commit 7dca729

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

array_api_tests/test_signatures.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def array_method(name):
1919
return stub_module(name) == 'array_object'
2020

2121
def function_category(name):
22-
return stub_module(name).split('_')[0]
22+
return stub_module(name).rsplit('_', 1)[0].replace('_', ' ')
2323

2424
def example_argument(arg, func_name):
2525
"""

0 commit comments

Comments
 (0)