diff options
author | Mark Wiebe <mwwiebe@gmail.com> | 2011-08-25 23:22:24 -0700 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2011-08-27 07:27:02 -0600 |
commit | 73d41dd2497ddf291b55d7af28f748f6ca4b9065 (patch) | |
tree | 2182f0df2cef1b668e6b8a8c430c707d25789bea | |
parent | ea622f36ffa9041faabeaa9143aa565856756024 (diff) | |
download | numpy-73d41dd2497ddf291b55d7af28f748f6ca4b9065.tar.gz |
TST: dtype: Adjust void dtype test to pass without raising a zero-size exception
-rw-r--r-- | numpy/core/tests/test_multiarray.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/tests/test_multiarray.py b/numpy/core/tests/test_multiarray.py index b9dfcddf9..f1a7a2b65 100644 --- a/numpy/core/tests/test_multiarray.py +++ b/numpy/core/tests/test_multiarray.py @@ -328,7 +328,7 @@ class TestCreation(TestCase): assert_equal(array(nstr, dtype=type), result, err_msg=msg) def test_void(self): - arr = np.array([np.void(0)], dtype='V') + arr = np.array([], dtype='V') assert_equal(arr.dtype.kind, 'V') def test_non_sequence_sequence(self): |