ref: 01e7be0487639b2f21d6f736642dc0fb9fb2ce40
parent: e6cde322b11d5e95519b77f873c0c598032f2826
author: Paul Brossier <piem@piem.org>
date: Fri Mar 22 08:33:35 EDT 2013
python/tests/test_source.py: really fail wrong hop size test
--- a/python/tests/test_source.py
+++ b/python/tests/test_source.py
@@ -54,8 +54,12 @@
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: