From 67f0092e50bfe01587708cc517831f3f3babaf8c Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Mon, 29 Aug 2016 23:07:15 +0200 Subject: [PATCH] python/tests/test_cvec.py: simplify --- python/tests/test_cvec.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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.) -- 2.11.0