From: Paul Brossier Date: Wed, 21 Sep 2016 14:00:03 +0000 (+0200) Subject: python/tests/test_pitchshift.py: make sure a wrong transpose raises RuntimeError X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=4292013afebf9a1426a7f6a84de7645856e4ac32;p=aubio.git python/tests/test_pitchshift.py: make sure a wrong transpose raises RuntimeError --- diff --git a/python/tests/test_pitchshift.py b/python/tests/test_pitchshift.py index 2db9d4d9..8b5af4ec 100755 --- a/python/tests/test_pitchshift.py +++ b/python/tests/test_pitchshift.py @@ -60,6 +60,11 @@ class aubio_pitchshift(TestCase): with self.assertRaises(ValueError): self.o.set_transpose(-24.3) +class aubio_pitchshift_wrong_params(TestCase): + + def test_wrong_transpose(self): + with self.assertRaises(RuntimeError): + aubio.pitchshift("default", -123) class aubio_pitchshift_testruns(TestCase):