From: Paul Brossier Date: Mon, 29 Aug 2016 21:07:15 +0000 (+0200) Subject: python/tests/test_cvec.py: simplify X-Git-Tag: 0.4.4~228 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=67f0092e50bfe01587708cc517831f3f3babaf8c;p=aubio.git python/tests/test_cvec.py: simplify --- diff --git a/python/tests/test_cvec.py b/python/tests/test_cvec.py index 53bf8dfd..5632784d 100755 --- 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.)