From 7e1350d016684adbb13bd13ca8a62d0a716e71d0 Mon Sep 17 00:00:00 2001 From: Travis Oliphant Date: Fri, 11 Apr 2008 06:53:49 +0000 Subject: Fixed #728 scalar coercion problem with mixed types and r_ --- numpy/lib/tests/test_index_tricks.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'numpy/lib/tests/test_index_tricks.py') diff --git a/numpy/lib/tests/test_index_tricks.py b/numpy/lib/tests/test_index_tricks.py index 8fc192202..38bbaae96 100644 --- a/numpy/lib/tests/test_index_tricks.py +++ b/numpy/lib/tests/test_index_tricks.py @@ -35,6 +35,10 @@ class TestConcatenator(NumpyTestCase): c = r_[b,0,0,b] assert_array_equal(c,[1,1,1,1,1,0,0,1,1,1,1,1]) + def check_mixed_type(self): + g = r_[10.1, 1:10] + assert(g.dtype == 'f8') + def check_2d(self): b = rand(5,5) c = rand(5,5) -- cgit v1.2.1