shithub: aubio

Download patch

ref: 0e362b524c7daea14c7cb2a6d62c35884c6364f8
parent: 9c8c8a6b5683570ec68c38e860642dbed212e42d
author: Paul Brossier <piem@piem.org>
date: Mon Jul 27 06:26:27 EDT 2015

python/tests/test_cvec.py: remove whitespace and unused variable (closes #19), thanks to SivaCoHan

--- a/python/tests/test_cvec.py
+++ b/python/tests/test_cvec.py
@@ -9,7 +9,6 @@
 
     def test_vector_created_with_zeroes(self):
         a = cvec(10)
-        a
         shape(a.norm)
         shape(a.phas)
         a.norm[0]
@@ -35,17 +34,17 @@
     def test_assign_cvec_norm_slice(self):
         spec = cvec(1024)
         spec.norm[40:100] = 100
-        assert_equal (spec.norm[0:40], 0)
-        assert_equal (spec.norm[40:100], 100)
-        assert_equal (spec.norm[100:-1], 0)
-        assert_equal (spec.phas, 0)
+        assert_equal(spec.norm[0:40], 0)
+        assert_equal(spec.norm[40:100], 100)
+        assert_equal(spec.norm[100:-1], 0)
+        assert_equal(spec.phas, 0)
 
     def test_assign_cvec_phas_slice(self):
         spec = cvec(1024)
         spec.phas[39:-1] = -pi
-        assert_equal (spec.phas[0:39], 0)
-        assert_equal (spec.phas[39:-1], -pi)
-        assert_equal (spec.norm, 0)
+        assert_equal(spec.phas[0:39], 0)
+        assert_equal(spec.phas[39:-1], -pi)
+        assert_equal(spec.norm, 0)
 
 if __name__ == '__main__':
     from unittest import main