From d4d9e9589efb352b40d25422d9f9b9b01e189fba Mon Sep 17 00:00:00 2001 From: Eric Wieser Date: Wed, 6 Dec 2017 22:50:27 -0800 Subject: MAINT: Use a StructSequence in place of the typeinfo tuples This makes the contents of `typeinfo` look liked namedtuples --- numpy/f2py/tests/test_array_from_pyobj.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/f2py') 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) -- cgit v1.2.1