python/tests/test_sink.py: add missing samplerate
[aubio.git] / python / tests / test_sink.py
index c31564a..795032b 100755 (executable)
@@ -117,10 +117,11 @@ class aubio_sink_test_case(TestCase):
         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__':