File: fix_test.patch

package info (click to toggle)
cfflib 2.0.5-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,676 kB
  • sloc: python: 11,033; makefile: 76; xml: 2
file content (18 lines) | stat: -rw-r--r-- 656 bytes parent folder | download
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')