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