summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--numpy/core/tests/test_longdouble.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/numpy/core/tests/test_longdouble.py b/numpy/core/tests/test_longdouble.py
index ed205a6ff..fcc79ecbc 100644
--- a/numpy/core/tests/test_longdouble.py
+++ b/numpy/core/tests/test_longdouble.py
@@ -82,10 +82,17 @@ def test_fromstring():
@in_foreign_locale
-def test_fromstring_best_effort():
+def test_fromstring_best_effort_float():
assert_equal(np.fromstring("1,234", dtype=float, sep=" "),
np.array([1.]))
+
+@in_foreign_locale
+def test_fromstring_best_effort():
+ assert_equal(np.fromstring("1,234", dtype=np.longdouble, sep=" "),
+ np.array([1.]))
+
+
def test_fromstring_bogus():
assert_equal(np.fromstring("1. 2. 3. flop 4.", dtype=float, sep=" "),
np.array([1., 2., 3.]))