diff options
author | Antony Lee <anntzer.lee@gmail.com> | 2015-09-28 13:27:26 -0700 |
---|---|---|
committer | Antony Lee <anntzer.lee@gmail.com> | 2015-09-28 13:27:26 -0700 |
commit | 032951dc09ae110f3260cf29abf9d584bda262a7 (patch) | |
tree | 25f423750a65fd7c0752e7a981b7fb2783df80d2 | |
parent | 649d19ff0ec5bba1fe0e89402d7cc8c4597ea170 (diff) | |
download | numpy-032951dc09ae110f3260cf29abf9d584bda262a7.tar.gz |
Add tests.
-rw-r--r-- | numpy/core/tests/test_deprecations.py | 10 |
1 files changed, 10 insertions, 0 deletions
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() |