summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_function_base.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/lib/tests/test_function_base.py')
-rw-r--r--numpy/lib/tests/test_function_base.py6
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):