summaryrefslogtreecommitdiff
path: root/numpy/f2py/tests
diff options
context:
space:
mode:
authorEric Wieser <wieser.eric@gmail.com>2017-12-06 22:50:27 -0800
committerEric Wieser <wieser.eric@gmail.com>2017-12-06 22:56:31 -0800
commitd4d9e9589efb352b40d25422d9f9b9b01e189fba (patch)
treed07894d52d78a1ebe95736ef5887b1b8d76dd8a2 /numpy/f2py/tests
parent058abc1e0e1f75921599050a98f3991b1230cb1b (diff)
downloadnumpy-d4d9e9589efb352b40d25422d9f9b9b01e189fba.tar.gz
MAINT: Use a StructSequence in place of the typeinfo tuples
This makes the contents of `typeinfo` look liked namedtuples
Diffstat (limited to 'numpy/f2py/tests')
-rw-r--r--numpy/f2py/tests/test_array_from_pyobj.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/f2py/tests/test_array_from_pyobj.py b/numpy/f2py/tests/test_array_from_pyobj.py
index 776ec3471..2a6d8eef5 100644
--- a/numpy/f2py/tests/test_array_from_pyobj.py
+++ b/numpy/f2py/tests/test_array_from_pyobj.py
@@ -141,7 +141,7 @@ class Type(object):
dtype0 = name
name = None
for n, i in typeinfo.items():
- if isinstance(i, tuple) and dtype0.type is i[-1]:
+ if not isinstance(i, type) and dtype0.type is i.type:
name = n
break
obj = cls._type_cache.get(name.upper(), None)