shithub: aubio

Download patch

ref: 6448d31a699c3233e2e90cf2dc2734dd86e98ead
parent: 4cb48d2e44c0100a0566fad95c39b851be57fa87
author: Paul Brossier <piem@piem.org>
date: Thu Mar 23 16:47:03 EDT 2017

python/tests/test_sink.py: add missing samplerate

--- a/python/tests/test_sink.py
+++ b/python/tests/test_sink.py
@@ -117,10 +117,11 @@
         del_tmp_sink_path(sink_path)
 
     def test_read_with(self):
-        sink_path =get_tmp_sink_path()
+        samplerate = 44100
+        sink_path = get_tmp_sink_path()
         vec = fvec(128)
         with sink(sink_path, samplerate) as g:
-            for i in range(10):
+            for _ in range(10):
                 g(vec, 128)
 
 if __name__ == '__main__':