From: Paul Brossier Date: Tue, 20 Sep 2016 23:49:16 +0000 (+0200) Subject: python/tests/test_pitchshift.py: catch runtime error here too X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=c2f7db8416f143c1f09dda351c0c63643683ed2d;p=aubio.git python/tests/test_pitchshift.py: catch runtime error here too --- diff --git a/python/tests/test_pitchshift.py b/python/tests/test_pitchshift.py index 37041bd5..2db9d4d9 100755 --- 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