From 4292013afebf9a1426a7f6a84de7645856e4ac32 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Wed, 21 Sep 2016 16:00:03 +0200 Subject: [PATCH] python/tests/test_pitchshift.py: make sure a wrong transpose raises RuntimeError --- python/tests/test_pitchshift.py | 5 +++++ 1 file changed, 5 insertions(+) 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): -- 2.11.0