diff options
author | mattip <matti.picus@gmail.com> | 2019-11-29 11:56:21 +0200 |
---|---|---|
committer | mattip <matti.picus@gmail.com> | 2019-11-29 11:56:21 +0200 |
commit | 25df5f1cb6e989d38c6556e8cac12634e89b0606 (patch) | |
tree | 03d011d0b7ae9c1931e6379f7beba66190cbbb49 | |
parent | d4167c25d9c628e717a18a2f25279729f0d778fc (diff) | |
download | numpy-25df5f1cb6e989d38c6556e8cac12634e89b0606.tar.gz |
MAINT: add test to test_deprecations
-rw-r--r-- | numpy/core/tests/test_deprecations.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/numpy/core/tests/test_deprecations.py b/numpy/core/tests/test_deprecations.py index 8bffaa9af..8f5a5f455 100644 --- a/numpy/core/tests/test_deprecations.py +++ b/numpy/core/tests/test_deprecations.py @@ -542,7 +542,6 @@ class TestFromStringAndFileInvalidData(_DeprecationTestCase): res = np.fromstring(x_str, sep=",", count=4) assert_array_equal(res, x) - class Test_GetSet_NumericOps(_DeprecationTestCase): # 2018-09-20, 1.16.0 def test_get_numeric_ops(self): @@ -568,3 +567,12 @@ class TestNonZero(_DeprecationTestCase): def test_zerod(self): self.assert_deprecated(lambda: np.nonzero(np.array(0))) self.assert_deprecated(lambda: np.nonzero(np.array(1))) + + +class TestRaggedArary(_DeprecationTestCase): + # 2019-11-29 1.18.0 + def test_deprecate_ragged_arrays(self): + # NEP 34 deprecated automatic object dtype when creating ragged + # arrays. Also see the "ragged" tests in `test_multiarray` + self.assert_deprecated(np.array, args=([1, [2, 3]],)) + |