Skip to content

Commit

Permalink
MAINT: Fixed test failures with Python 2.7 and NumPy 1.14.3
Browse files Browse the repository at this point in the history
While fixing fall-outs of changes to `numpy.rec.array`
(see numpy/numpy#10344) I evidently missed
a spot which is now causing trouble. See

#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.
  • Loading branch information
oleksandr-pavlyk committed May 2, 2018
1 parent 2e2e563 commit d815072
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tables/tests/test_tables.py
Expand Up @@ -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)
Expand Down

0 comments on commit d815072

Please sign in to comment.