From: Paul Brossier Date: Fri, 22 Mar 2013 17:33:35 +0000 (-0500) Subject: python/tests/test_source.py: really fail wrong hop size test X-Git-Url: http://git.tremily.us/?p=aubio.git;a=commitdiff_plain;h=01e7be0487639b2f21d6f736642dc0fb9fb2ce40 python/tests/test_source.py: really fail wrong hop size test --- 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: