projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55027f3
)
python/tests/test_cvec.py: simplify
author
Paul Brossier
<piem@piem.org>
Mon, 29 Aug 2016 21:07:15 +0000
(23:07 +0200)
committer
Paul Brossier
<piem@piem.org>
Mon, 29 Aug 2016 21:07:15 +0000
(23:07 +0200)
python/tests/test_cvec.py
patch
|
blob
|
history
diff --git
a/python/tests/test_cvec.py
b/python/tests/test_cvec.py
index
53bf8df
..
5632784
100755
(executable)
--- a/
python/tests/test_cvec.py
+++ b/
python/tests/test_cvec.py
@@
-11,9
+11,8
@@
class aubio_cvec_test_case(TestCase):
def test_vector_created_with_zeroes(self):
a = cvec(10)
- assert_equal(a.norm.shape[0], 10 / 2 + 1)
- assert_equal(a.phas.shape[0], 10 / 2 + 1)
- _ = a.norm[0]
+ assert_equal(a.norm.shape[0], 10 // 2 + 1)
+ assert_equal(a.phas.shape[0], 10 // 2 + 1)
assert_equal(a.norm, 0.)
assert_equal(a.phas, 0.)