History

python/tests/test_pitchshift.py: skip test on RuntimeError

Paul Brossier committed 10 years ago

Commit 60cbfe81 parent 24dfc3d1 file · +4 −1Browse files

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

Unified · Split

python/tests/test_pitchshift.py+4−1
@@ -6,7 +6,10 @@ import aubio · 5 unmodified lines
6class aubio_pitchshift(TestCase):6class aubio_pitchshift(TestCase):
7 7
8 def setUp(self):8 def setUp(self):
9 self.o = aubio.pitchshift()9 try:
10 self.o = aubio.pitchshift()
11 except RuntimeError as e:
12 self.skipTest("creating aubio.pitchshift failed (recompile with rubberband?)")
10 13
11 def test_default_creation(self):14 def test_default_creation(self):
12 self.assertEqual(self.o.get_pitchscale(), 1)15 self.assertEqual(self.o.get_pitchscale(), 1)

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