From 032951dc09ae110f3260cf29abf9d584bda262a7 Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Mon, 28 Sep 2015 13:27:26 -0700 Subject: Add tests. --- numpy/core/tests/test_deprecations.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'numpy/core') diff --git a/numpy/core/tests/test_deprecations.py b/numpy/core/tests/test_deprecations.py index 3e76409c5..e3aea7efb 100644 --- a/numpy/core/tests/test_deprecations.py +++ b/numpy/core/tests/test_deprecations.py @@ -374,5 +374,15 @@ class TestBooleanIndexShapeMismatchDeprecation(): arr.__getitem__, (slice(None), index)) +class TestFullDefaultDtype: + """np.full defaults to float when dtype is not set. In the future, it will + use the fill value's dtype. + """ + + def test_full_default_dtype(self): + assert_warns(FutureWarning, np.full, 1, 1) + assert_warns(FutureWarning, np.full, 1, None) + + if __name__ == "__main__": run_module_suite() -- cgit v1.2.1