1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
Description: Work around issue in test suite
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
Bug-Debian: https://bugs.debian.org/877151
https://bugs.debian.org/896309
Author: Andreas Tille <tille@debian.org>
Last-Update: Thu, 05 Jul 2018 22:36:01 +0200
--- a/cfflib/tests/test_cfflib.py
+++ b/cfflib/tests/test_cfflib.py
@@ -399,7 +399,7 @@ def test_cdata():
d.load()
assert_true(hasattr(d,'data'))
if hasattr(d,'data'):
- assert_not_equal(d.data, None)
+ assert_not_equal(len(d.data), 0)
# Check HDF5
#d = CData('data hdf5')
|