Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.0:Ports
python-tables
initRecArray_tuples.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File initRecArray_tuples.patch of Package python-tables
From d81507267de9965cbffbb8877784aa5b8fce2aa9 Mon Sep 17 00:00:00 2001 From: Oleksandr Pavlyk <oleksandr.pavlyk@intel.com> 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 97a3f092..af832214 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)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor