projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04fc360
)
python/tests/test_pitchshift.py: catch runtime error here too
author
Paul Brossier
<piem@piem.org>
Tue, 20 Sep 2016 23:49:16 +0000
(
01:49
+0200)
committer
Paul Brossier
<piem@piem.org>
Tue, 20 Sep 2016 23:49:16 +0000
(
01:49
+0200)
python/tests/test_pitchshift.py
patch
|
blob
|
history
diff --git
a/python/tests/test_pitchshift.py
b/python/tests/test_pitchshift.py
index
37041bd
..
2db9d4d
100755
(executable)
--- a/
python/tests/test_pitchshift.py
+++ b/
python/tests/test_pitchshift.py
@@
-71,7
+71,10
@@
class aubio_pitchshift_testruns(TestCase):
("crispness:6", 2.3, 4096, 192000),
)
def test_run_with_params(self, mode, pitchscale, hop_size, samplerate):
- self.o = aubio.pitchshift(mode, pitchscale, hop_size, samplerate)
+ try:
+ self.o = aubio.pitchshift(mode, pitchscale, hop_size, samplerate)
+ except RuntimeError as e:
+ self.skipTest("creating aubio.pitchshift failed (recompile with rubberband?)")
test_length = self.o.hop_size * 50
read = 0
# test on random