summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_index_tricks.py
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2008-04-11 06:53:49 +0000
committerTravis Oliphant <oliphant@enthought.com>2008-04-11 06:53:49 +0000
commit7e1350d016684adbb13bd13ca8a62d0a716e71d0 (patch)
tree2045108f450fcee29ece6594165cd2e697c69ea2 /numpy/lib/tests/test_index_tricks.py
parentcb7f01c247002a6921d9a247d60bacf2db3cd39b (diff)
downloadnumpy-7e1350d016684adbb13bd13ca8a62d0a716e71d0.tar.gz
Fixed #728 scalar coercion problem with mixed types and r_
Diffstat (limited to 'numpy/lib/tests/test_index_tricks.py')
-rw-r--r--numpy/lib/tests/test_index_tricks.py4
1 files changed, 4 insertions, 0 deletions
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)