Skip to content

Commit 633691a

Browse files
committed
Fix test_scalar_casting param name
1 parent 4a04c6e commit 633691a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

array_api_tests/test_array_object.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,10 +243,11 @@ def test_setitem_masking(shape, data):
243243

244244

245245
def make_scalar_casting_param(
246-
method_name: str, dtype_name: DataType, stype: ScalarType
246+
method_name: str, dtype: DataType, stype: ScalarType
247247
) -> Param:
248+
dtype_name = dh.dtype_to_name[dtype]
248249
return pytest.param(
249-
method_name, dtype_name, stype, id=f"{method_name}({dtype_name})"
250+
method_name, dtype, stype, id=f"{method_name}({dtype_name})"
250251
)
251252

252253

0 commit comments

Comments
 (0)