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