summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_format.py
diff options
context:
space:
mode:
authormattip <matti.picus@gmail.com>2019-05-05 19:50:06 -0400
committermattip <matti.picus@gmail.com>2019-05-11 16:37:34 -0700
commitbd73a15363295658e150754edf6d1073cbdb3975 (patch)
tree60fc02fecc77059ee1b9602477795cc21fa18e1c /numpy/lib/tests/test_format.py
parentb90addd13f17d967d81dc1d7515887d4fcd6ef59 (diff)
downloadnumpy-bd73a15363295658e150754edf6d1073cbdb3975.tar.gz
MAINT: remove uneeded code
Diffstat (limited to 'numpy/lib/tests/test_format.py')
-rw-r--r--numpy/lib/tests/test_format.py29
1 files changed, 20 insertions, 9 deletions
diff --git a/numpy/lib/tests/test_format.py b/numpy/lib/tests/test_format.py
index a3ac89cdd..4a3fbdf57 100644
--- a/numpy/lib/tests/test_format.py
+++ b/numpy/lib/tests/test_format.py
@@ -635,14 +635,6 @@ def test_pickle_disallow():
('c', np.int32),
], align=True),
(3,)),
- np.dtype([('x', ([('a', '|i1'),
- ('', '|V3'),
- ('b', '|i1'),
- ('', '|V3'),
- ],
- (3,)),
- (4,),
- )]),
np.dtype([('x', np.dtype({'names':['a','b'],
'formats':['i1','i1'],
'offsets':[0,4],
@@ -665,8 +657,27 @@ def test_pickle_disallow():
)),
(4,)
)))
- ])
+ ]),
+ np.dtype([
+ ('a', np.dtype((
+ np.dtype((
+ np.dtype((
+ np.dtype([
+ ('a', int),
+ ('b', np.dtype({'names':['a','b'],
+ 'formats':['i1','i1'],
+ 'offsets':[0,4],
+ 'itemsize':8})),
+ ]),
+ (3,),
+ )),
+ (4,),
+ )),
+ (5,),
+ )))
+ ]),
])
+
def test_descr_to_dtype(dt):
dt1 = format.descr_to_dtype(dt.descr)
assert_equal_(dt1, dt)