shithub: aubio

Download patch

ref: 4292013afebf9a1426a7f6a84de7645856e4ac32
parent: a9eb93e0d739f917ca432d8b189547d210b5ffe8
author: Paul Brossier <piem@piem.org>
date: Wed Sep 21 12:00:03 EDT 2016

python/tests/test_pitchshift.py: make sure a wrong transpose raises RuntimeError

--- a/python/tests/test_pitchshift.py
+++ b/python/tests/test_pitchshift.py
@@ -60,6 +60,11 @@
         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):
 
--