From 4d7ed27e4611428da88cfc182a4d90fa5535cfcc Mon Sep 17 00:00:00 2001 From: djl11 Date: Sat, 21 May 2022 19:25:48 +0200 Subject: [PATCH] prevented string dtypes from being split into chars in pytest_helpers. --- array_api_tests/pytest_helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/array_api_tests/pytest_helpers.py b/array_api_tests/pytest_helpers.py index 39513670..5c779302 100644 --- a/array_api_tests/pytest_helpers.py +++ b/array_api_tests/pytest_helpers.py @@ -121,7 +121,7 @@ def assert_dtype( >>> assert_dtype('sum', x, out.dtype, default_int) """ - in_dtypes = in_dtype if isinstance(in_dtype, Sequence) else [in_dtype] + in_dtypes = in_dtype if isinstance(in_dtype, Sequence) and not isinstance(in_dtype, str) else [in_dtype] f_in_dtypes = dh.fmt_types(tuple(in_dtypes)) f_out_dtype = dh.dtype_to_name[out_dtype] if expected is None: