summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_io.py
diff options
context:
space:
mode:
authorMark Wiebe <mwwiebe@gmail.com>2011-02-06 15:48:45 -0800
committerMark Wiebe <mwwiebe@gmail.com>2011-02-06 22:04:27 -0800
commit2635398db3f26529ce2aaea4028a8118844f3c48 (patch)
tree2ce59bfa62030ae177f494e61659d0d2d2ecc432 /numpy/lib/tests/test_io.py
parent13c83fd3558cc366233f0522b2922f5ee95e8c4a (diff)
downloadnumpy-2635398db3f26529ce2aaea4028a8118844f3c48.tar.gz
ENH: core: Add new GetArrayParamsFromObject API function (fixes #1081)
This function allows code to query an object's "innate" type and shape, without actually creating a NumPy array out of it. PyArray_FromAny has been changed to use this function, as an assurance that its implementation is correct. This also fixes the known failure in test_regression.py.
Diffstat (limited to 'numpy/lib/tests/test_io.py')
-rw-r--r--numpy/lib/tests/test_io.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/tests/test_io.py b/numpy/lib/tests/test_io.py
index 04497dee8..5001f6bac 100644
--- a/numpy/lib/tests/test_io.py
+++ b/numpy/lib/tests/test_io.py
@@ -1050,7 +1050,7 @@ M 33 21.99
converters = {4: lambda x:"(%s)" % x}
kwargs = dict(delimiter=",", converters=converters,
dtype=[(_, int) for _ in 'abcde'],)
- assert_raises(TypeError, np.genfromtxt, mdata, **kwargs)
+ assert_raises(ValueError, np.genfromtxt, mdata, **kwargs)
def test_default_field_format(self):