Showing the changes to python/tests/test_source.py (1 of 1 file). Show all
Unified · Split
| @@ -54,8 +54,12 @@ class aubio_source_test_case(TestCase): · 53 unmodified lines | |||
| 54 | 54 | ||
| 55 | def test_wrong_hop_size(self): | 55 | def test_wrong_hop_size(self): |
| 56 | for p in list_of_sounds: | 56 | for p in list_of_sounds: |
| 57 | f = source(p, 0, -1) | 57 | try: |
| 58 | print f.hop_size | 58 | f = source(p, 0, -1) |
| 59 | except Exception, e: | ||
| 60 | print e | ||
| 61 | else: | ||
| 62 | self.fail('does not fail with wrong hop_size %d' % f.hop_size) | ||
| 59 | 63 | ||
| 60 | def test_zero_hop_size(self): | 64 | def test_zero_hop_size(self): |
| 61 | for p in list_of_sounds: | 65 | for p in list_of_sounds: |