From 7daa8811896e8395aabc51fc5df1c87dea29699a Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Mon, 3 Oct 2016 12:24:35 +0200 Subject: [PATCH] python/tests/test_source.py: only check if last frames are non silent on brownnoise (weak) --- python/tests/test_source.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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}" -- 2.11.0