History

python/tests/test_source.py: only check if last frames are non silent on brownnoise (weak)

Paul Brossier committed 10 years ago

Commit 7daa8811 parent f9a543e1 file · +2 −2Browse files

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

Unified · Split

python/tests/test_source.py+2−2
@@ -56,7 +56,7 @@ class aubio_source_read_test_case(aubio_source_test_case_base): · 55 unmodified lines
5656 total_frames += read
5757 if read < f.hop_size:
5858 assert_equal(samples[read:], 0)
59− if 'silence' not in f.uri:
59+ if 'brownnoise' in f.uri:
6060 self.assertEquals(np.count_nonzero(samples[:read]), read)
6161 break
6262 #result_str = "read {:.2f}s ({:d} frames in {:d} blocks at {:d}Hz) from {:s}"
@@ -158,7 +158,7 @@ class aubio_source_readmulti_test_case(aubio_source_read_test_case): · 95 unmodified lines
158158 total_frames += read
159159 if read < f.hop_size:
160160 assert_equal(samples[:,read:], 0)
161− if 'silence' not in f.uri:
161+ if 'brownnoise' in f.uri:
162162 self.assertEquals(np.count_nonzero(samples[:,:read]), read)
163163 break
164164 #result_str = "read {:.2f}s ({:d} frames in {:d} channels and {:d} blocks at {:d}Hz) from {:s}"

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