Add dependency on psutil and fix build
This commit is contained in:
parent
dd20be5f50
commit
c8e222785c
2 changed files with 42 additions and 0 deletions
35
0001-tests-fix-error-with-new-numpy.patch
Normal file
35
0001-tests-fix-error-with-new-numpy.patch
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
From b49ff10a169a0c8e862a5dbe0f4b291cef17f9d0 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
|
||||
Date: Sat, 13 Feb 2016 17:35:36 -0500
|
||||
Subject: [PATCH] tests: fix error with new numpy
|
||||
|
||||
ERROR: test_pack_array_exceptions (blosc.test.TestCodec)
|
||||
----------------------------------------------------------------------
|
||||
Traceback (most recent call last):
|
||||
File "/builddir/build/BUILDROOT/python-blosc-1.2.8-2.fc24.i386/usr/lib/python2.7/site-packages/blosc/test.py", line 195, in test_pack_array_exceptions
|
||||
strides=(8, 0))[0]
|
||||
File "/usr/lib/python2.7/site-packages/numpy/lib/stride_tricks.py", line 48, in as_strided
|
||||
array = np.asarray(DummyArray(interface, base=x))
|
||||
File "/usr/lib/python2.7/site-packages/numpy/core/numeric.py", line 482, in asarray
|
||||
return array(a, dtype, copy=False, order=order)
|
||||
TypeError: 'float' object cannot be interpreted as an index
|
||||
---
|
||||
blosc/test.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/blosc/test.py b/blosc/test.py
|
||||
index 8bf9c48600..ce96f5ec6f 100644
|
||||
--- a/blosc/test.py
|
||||
+++ b/blosc/test.py
|
||||
@@ -185,7 +185,7 @@ class TestCodec(unittest.TestCase):
|
||||
self.assertRaises(TypeError, blosc.pack_array, 'abc')
|
||||
self.assertRaises(TypeError, blosc.pack_array, 1.0)
|
||||
|
||||
- items = (blosc.BLOSC_MAX_BUFFERSIZE / 8) + 1
|
||||
+ items = (blosc.BLOSC_MAX_BUFFERSIZE // 8) + 1
|
||||
one = numpy.ones(1, dtype=numpy.int64)
|
||||
self.assertRaises(ValueError, blosc.pack_array, one, clevel=-1)
|
||||
self.assertRaises(ValueError, blosc.pack_array, one, clevel=10)
|
||||
--
|
||||
2.5.0
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue