projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9eb93e
)
python/tests/test_pitchshift.py: make sure a wrong transpose raises RuntimeError
author
Paul Brossier
<piem@piem.org>
Wed, 21 Sep 2016 14:00:03 +0000
(16:00 +0200)
committer
Paul Brossier
<piem@piem.org>
Wed, 21 Sep 2016 14:00:03 +0000
(16:00 +0200)
python/tests/test_pitchshift.py
patch
|
blob
|
history
diff --git
a/python/tests/test_pitchshift.py
b/python/tests/test_pitchshift.py
index
2db9d4d
..
8b5af4e
100755
(executable)
--- 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):