Showing the changes to python (1 of 1 file). Show all
Unified · Split
| @@ -54,8 +54,12 @@ class aubio_source_test_case(TestCase): · 53 unmodified lines | ||
| 54 | 54 | |
| 55 | 55 | def test_wrong_hop_size(self): |
| 56 | 56 | for p in list_of_sounds: |
| 57 | − f = source(p, 0, -1) | |
| 58 | − print f.hop_size | |
| 57 | + try: | |
| 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 | 64 | def test_zero_hop_size(self): |
| 61 | 65 | for p in list_of_sounds: |