History

python/tests/test_sink.py: add missing samplerate

Paul Brossier committed 9 years ago

Commit 6448d311 parent 4cb48d21 file · +3 −2Browse files

Showing the changes to python/tests (1 of 1 file). Show all

Unified · Split

python/tests/test_sink.py+3−2
@@ -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
126if __name__ == '__main__':127if __name__ == '__main__':

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t