diff options
author | mattip <matti.picus@gmail.com> | 2019-11-29 13:32:22 +0200 |
---|---|---|
committer | mattip <matti.picus@gmail.com> | 2019-11-29 13:32:22 +0200 |
commit | 9b4d0ac95d178409d030a4c77651f8ed1d305dea (patch) | |
tree | 7cdf46047f909174115c768aef2fcf846c5ada00 /numpy | |
parent | 25df5f1cb6e989d38c6556e8cac12634e89b0606 (diff) | |
download | numpy-9b4d0ac95d178409d030a4c77651f8ed1d305dea.tar.gz |
MAINT: changes from review
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/core/tests/test_deprecations.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/numpy/core/tests/test_deprecations.py b/numpy/core/tests/test_deprecations.py index 8f5a5f455..214372524 100644 --- a/numpy/core/tests/test_deprecations.py +++ b/numpy/core/tests/test_deprecations.py @@ -542,6 +542,7 @@ 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): @@ -569,10 +570,11 @@ class TestNonZero(_DeprecationTestCase): self.assert_deprecated(lambda: np.nonzero(np.array(1))) -class TestRaggedArary(_DeprecationTestCase): +class TestRaggedArray(_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]],)) + arg = [1, [2, 3]] + self.assert_deprecated(np.array, args=(arg,)) |