We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46aa91d commit a054d53Copy full SHA for a054d53
array_api_tests/test_signatures.py
@@ -91,7 +91,10 @@ def example_argument(arg, func_name):
91
def test_has_names(name):
92
if array_method(name):
93
arr = ones((1,))
94
- assert hasattr(arr, name), f"The array object is missing the method {name}()"
+ if getattr(function_stubs.array_object, name) is None:
95
+ assert hasattr(arr, name), f"The array object is missing the attribute {name}"
96
+ else:
97
+ assert hasattr(arr, name), f"The array object is missing the method {name}()"
98
else:
99
assert hasattr(mod, name), f"{mod_name} is missing the {function_category(name)} function {name}()"
100
0 commit comments