Skip to content

Commit 167b4f7

Browse files
authored
Merge pull request #123 from djl11/master
Prevent string dtypes from being split into chars in pytest_helpers
2 parents 71639af + 4d7ed27 commit 167b4f7

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)