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
60 with self.assertRaises(ValueError):60 with self.assertRaises(ValueError):
61 self.o.set_transpose(-24.3)61 self.o.set_transpose(-24.3)
62 62
63class aubio_pitchshift_wrong_params(TestCase):
64
65 def test_wrong_transpose(self):
66 with self.assertRaises(RuntimeError):
67 aubio.pitchshift("default", -123)
63 68
64class aubio_pitchshift_testruns(TestCase):69class aubio_pitchshift_testruns(TestCase):
65 70

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