Showing the changes to python (1 of 1 file). Show all
Unified · Split
| @@ -60,6 +60,11 @@ class aubio_pitchshift(TestCase): · 59 unmodified lines | |||
| 60 | with self.assertRaises(ValueError): | 60 | with self.assertRaises(ValueError): |
| 61 | self.o.set_transpose(-24.3) | 61 | self.o.set_transpose(-24.3) |
| 62 | 62 | ||
| 63 | class aubio_pitchshift_wrong_params(TestCase): | ||
| 64 | |||
| 65 | def test_wrong_transpose(self): | ||
| 66 | with self.assertRaises(RuntimeError): | ||
| 67 | aubio.pitchshift("default", -123) | ||
| 63 | 68 | ||
| 64 | class aubio_pitchshift_testruns(TestCase): | 69 | class aubio_pitchshift_testruns(TestCase): |
| 65 | 70 | ||