Showing the changes to python/tests (1 of 1 file). Show all
Unified · Split
| @@ -117,10 +117,11 @@ class aubio_sink_test_case(TestCase): · 116 unmodified lines | |||
| 117 | del_tmp_sink_path(sink_path) | 117 | del_tmp_sink_path(sink_path) |
| 118 | 118 | ||
| 119 | def test_read_with(self): | 119 | def test_read_with(self): |
| 120 | sink_path =get_tmp_sink_path() | 120 | samplerate = 44100 |
| 121 | sink_path = get_tmp_sink_path() | ||
| 121 | vec = fvec(128) | 122 | vec = fvec(128) |
| 122 | with sink(sink_path, samplerate) as g: | 123 | with sink(sink_path, samplerate) as g: |
| 123 | for i in range(10): | 124 | for _ in range(10): |
| 124 | g(vec, 128) | 125 | g(vec, 128) |
| 125 | 126 | ||
| 126 | if __name__ == '__main__': | 127 | if __name__ == '__main__': |