History

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

Paul Brossier committed 10 years ago

Commit 42920131 parent a9eb93e1 file · +5 −0Browse files

Showing the changes to python (1 of 1 file). Show all

Unified · Split

python/tests/test_pitchshift.py+5−0
@@ -60,6 +60,11 @@ class aubio_pitchshift(TestCase): · 59 unmodified lines
6060 with self.assertRaises(ValueError):
6161 self.o.set_transpose(-24.3)
6262
63+class aubio_pitchshift_wrong_params(TestCase):
64+
65+ def test_wrong_transpose(self):
66+ with self.assertRaises(RuntimeError):
67+ aubio.pitchshift("default", -123)
6368
6469 class aubio_pitchshift_testruns(TestCase):
6570

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t