summaryrefslogtreecommitdiff
path: root/numpy/core/tests
diff options
context:
space:
mode:
authorzjpoh <poh.zijie@gmail.com>2019-10-06 21:44:59 -0700
committerzjpoh <poh.zijie@gmail.com>2019-10-06 21:44:59 -0700
commit23fdb82e28ca5cf5b66dadbc4ca4afc9d5f0cab6 (patch)
tree78cb5496f9bd1d536ed82c01045d68649182a608 /numpy/core/tests
parent3c9926bc326f37f3785ddb6e2fc646b3bc2bf9f3 (diff)
downloadnumpy-23fdb82e28ca5cf5b66dadbc4ca4afc9d5f0cab6.tar.gz
Update per Sebastian's comments
Diffstat (limited to 'numpy/core/tests')
-rw-r--r--numpy/core/tests/test_longdouble.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/numpy/core/tests/test_longdouble.py b/numpy/core/tests/test_longdouble.py
index b9652cc98..74dcb4d5e 100644
--- a/numpy/core/tests/test_longdouble.py
+++ b/numpy/core/tests/test_longdouble.py
@@ -95,6 +95,12 @@ def test_fromstring_complex():
with assert_warns(DeprecationWarning):
assert_equal(np.fromstring("1+j", dtype=ctype, sep=","),
np.array([1.]))
+ with assert_warns(DeprecationWarning):
+ assert_equal(np.fromstring("1+", dtype=ctype, sep=","),
+ np.array([1.]))
+ with assert_warns(DeprecationWarning):
+ assert_equal(np.fromstring("1j+1", dtype=ctype, sep=","),
+ np.array([1j]))