python/tests/test_fft.py: avoid VisibleDeprecationWarning
authorPaul Brossier <piem@piem.org>
Sat, 14 May 2016 03:27:05 +0000 (05:27 +0200)
committerPaul Brossier <piem@piem.org>
Sat, 14 May 2016 03:27:05 +0000 (05:27 +0200)
python/tests/test_fft.py

index 8ab92ef..93f7d51 100755 (executable)
@@ -37,7 +37,7 @@ class aubio_fft_test_case(TestCase):
         from random import random
         from math import floor
         win_s = 256
-        i = floor(random()*win_s)
+        i = int(floor(random()*win_s))
         impulse = pi * random()
         f = fft(win_s)
         timegrain = fvec(win_s)