Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4d7ed27

Browse files
committedMay 21, 2022
prevented string dtypes from being split into chars in pytest_helpers.
1 parent 71639af commit 4d7ed27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎array_api_tests/pytest_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def assert_dtype(
121121
>>> assert_dtype('sum', x, out.dtype, default_int)
122122
123123
"""
124-
in_dtypes = in_dtype if isinstance(in_dtype, Sequence) else [in_dtype]
124+
in_dtypes = in_dtype if isinstance(in_dtype, Sequence) and not isinstance(in_dtype, str) else [in_dtype]
125125
f_in_dtypes = dh.fmt_types(tuple(in_dtypes))
126126
f_out_dtype = dh.dtype_to_name[out_dtype]
127127
if expected is None:

0 commit comments

Comments
 (0)
Please sign in to comment.