From d81507267de9965cbffbb8877784aa5b8fce2aa9 Mon Sep 17 00:00:00 2001 From: Oleksandr Pavlyk Date: Wed, 2 May 2018 11:54:05 -0500 Subject: [PATCH] MAINT: Fixed test failures with Python 2.7 and NumPy 1.14.3 While fixing fall-outs of changes to `numpy.rec.array` (see https://github.com/numpy/numpy/issues/10344) I evidently missed a spot which is now causing trouble. See https://github.com/PyTables/PyTables/pull/664 I think I noted this in the aforementioned PR in a comment. This PR is to make sure that `initRecArray` method produces list of tuples, rather than list of lists, as an argument to `numpy.rec.array` constructor. --- tables/tests/test_tables.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tables/tests/test_tables.py b/tables/tests/test_tables.py index 97a3f092f..af832214a 100644 --- a/tables/tests/test_tables.py +++ b/tables/tests/test_tables.py @@ -201,7 +201,7 @@ def initRecArray(self): else: tmplist.append(1 + float(i)*1j) - buflist.append(tmplist) + buflist.append(tuple(tmplist)) self.record = records.array(buflist, dtype=record.dtype, shape=self.expectedrows)