Showing the changes to python (1 of 1 file). Show all
Unified · Split
| @@ -71,7 +71,10 @@ class aubio_pitchshift_testruns(TestCase): · 70 unmodified lines | ||
| 71 | 71 | ("crispness:6", 2.3, 4096, 192000), |
| 72 | 72 | ) |
| 73 | 73 | def test_run_with_params(self, mode, pitchscale, hop_size, samplerate): |
| 74 | − self.o = aubio.pitchshift(mode, pitchscale, hop_size, samplerate) | |
| 74 | + try: | |
| 75 | + self.o = aubio.pitchshift(mode, pitchscale, hop_size, samplerate) | |
| 76 | + except RuntimeError as e: | |
| 77 | + self.skipTest("creating aubio.pitchshift failed (recompile with rubberband?)") | |
| 75 | 78 | test_length = self.o.hop_size * 50 |
| 76 | 79 | read = 0 |
| 77 | 80 | # test on random |