diff options
author | Lars Buitinck <L.J.Buitinck@uva.nl> | 2011-07-19 15:40:33 +0200 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2011-07-19 07:57:10 -0600 |
commit | c649139121015e3d6bb82377e3c9094a0f850065 (patch) | |
tree | 843bddf88e506f707b2dc5e8c6c5d813b7028093 /numpy/lib/tests/test_function_base.py | |
parent | a468b2e7ec180f9fb742070e1d108a8d56bdd0ea (diff) | |
download | numpy-c649139121015e3d6bb82377e3c9094a0f850065.tar.gz |
Regression test for missing dtype and order args in asarray_chkfinite
Diffstat (limited to 'numpy/lib/tests/test_function_base.py')
-rw-r--r-- | numpy/lib/tests/test_function_base.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/numpy/lib/tests/test_function_base.py b/numpy/lib/tests/test_function_base.py index e65c84158..9df1a916f 100644 --- a/numpy/lib/tests/test_function_base.py +++ b/numpy/lib/tests/test_function_base.py @@ -793,6 +793,12 @@ class TestCheckFinite(TestCase): assert_raises(ValueError, numpy.lib.asarray_chkfinite, b) assert_raises(ValueError, numpy.lib.asarray_chkfinite, c) + def test_dtype_order(self): + """Regression test for missing dtype and order arguments""" + a = [1, 2, 3] + a = numpy.lib.asarray_chkfinite(a, order='F', dtype=numpy.float64) + assert_(a.dtype == numpy.float64) + class TestNaNFuncts(TestCase): def setUp(self): |