Blob Blame History Raw
From e6b16b00e1ef36c4147af9794539c3236d08578e Mon Sep 17 00:00:00 2001
From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
Date: Sun, 3 Mar 2019 04:58:33 -0500
Subject: [PATCH 2/3] Use correct dtype when test concatenation.

When all dtypes are the same, dask returns the same dtype. When they are
not all the same, then it defers to np.promote_dtypes. This function
always returns native byteorder, so fix the test.

Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
---
 dask/array/tests/test_array_core.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dask/array/tests/test_array_core.py b/dask/array/tests/test_array_core.py
index 10239846..0da4d0bb 100644
--- a/dask/array/tests/test_array_core.py
+++ b/dask/array/tests/test_array_core.py
@@ -362,7 +362,7 @@ def test_concatenate():
 
 
 @pytest.mark.parametrize('dtypes', [(('>f8', '>f8'), '>f8'),
-                                    (('<f4', '<f8'), '<f8')])
+                                    (('<f4', '<f8'), '=f8')])
 def test_concatenate_types(dtypes):
     dts_in, dt_out = dtypes
     arrs = [np.zeros(4, dtype=dt) for dt in dts_in]
-- 
2.20.1