Skip to content

Commit 87bc8b5

Browse files
committed
Fix mT and T property checks in test_signatures.py
1 parent 01a05f0 commit 87bc8b5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

array_api_tests/test_signatures.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ def example_argument(arg, func_name, dtype):
6969
offset=1,
7070
ord=1,
7171
obj = [[[1, 1, 1], [1, 1, 1], [1, 1, 1]]],
72-
other=ones((1, 3, 3), dtype=dtype),
72+
other=ones((3, 3), dtype=dtype),
7373
return_counts=True,
7474
return_index=True,
7575
return_inverse=True,
76-
self=ones((1, 3, 3), dtype=dtype),
76+
self=ones((3, 3), dtype=dtype),
7777
shape=(1, 3, 3),
7878
shift=1,
7979
sorted=False,
@@ -118,7 +118,7 @@ def test_has_names(name):
118118
if extension_module(name):
119119
assert hasattr(mod, name), f'{mod_name} is missing the {name} extension'
120120
elif array_method(name):
121-
arr = ones((1,))
121+
arr = ones((1, 1))
122122
if getattr(function_stubs.array_object, name) is None:
123123
assert hasattr(arr, name), f"The array object is missing the attribute {name}"
124124
else:
@@ -198,7 +198,7 @@ def test_function_positional_args(name):
198198
@pytest.mark.parametrize('name', function_stubs.__all__)
199199
def test_function_keyword_only_args(name):
200200
if array_method(name):
201-
_mod = ones((1,))
201+
_mod = ones((1, 1))
202202
else:
203203
_mod = mod
204204

0 commit comments

Comments
 (0)