From: Paul Brossier Date: Mon, 3 Oct 2016 10:24:35 +0000 (+0200) Subject: python/tests/test_source.py: only check if last frames are non silent on brownnoise... X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=598774b136fce81ea178968f21e800fa73c81f5f;p=aubio.git python/tests/test_source.py: only check if last frames are non silent on brownnoise (weak) --- diff --git a/python/tests/test_source.py b/python/tests/test_source.py index a13c45d6..e53ec8a0 100755 --- a/python/tests/test_source.py +++ b/python/tests/test_source.py @@ -56,7 +56,7 @@ class aubio_source_read_test_case(aubio_source_test_case_base): total_frames += read if read < f.hop_size: assert_equal(samples[read:], 0) - if 'silence' not in f.uri: + if 'brownnoise' in f.uri: self.assertEquals(np.count_nonzero(samples[:read]), read) break #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): total_frames += read if read < f.hop_size: assert_equal(samples[:,read:], 0) - if 'silence' not in f.uri: + if 'brownnoise' in f.uri: self.assertEquals(np.count_nonzero(samples[:,:read]), read) break #result_str = "read {:.2f}s ({:d} frames in {:d} channels and {:d} blocks at {:d}Hz) from {:s}"