From 01e7be0487639b2f21d6f736642dc0fb9fb2ce40 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Fri, 22 Mar 2013 12:33:35 -0500 Subject: [PATCH] python/tests/test_source.py: really fail wrong hop size test --- python/tests/test_source.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/python/tests/test_source.py b/python/tests/test_source.py index d26e4e78..b96bb919 100755 --- a/python/tests/test_source.py +++ b/python/tests/test_source.py @@ -54,8 +54,12 @@ class aubio_source_test_case(TestCase): def test_wrong_hop_size(self): for p in list_of_sounds: - f = source(p, 0, -1) - print f.hop_size + try: + f = source(p, 0, -1) + except Exception, e: + print e + else: + self.fail('does not fail with wrong hop_size %d' % f.hop_size) def test_zero_hop_size(self): for p in list_of_sounds: -- 2.26.2