From c2f7db8416f143c1f09dda351c0c63643683ed2d Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Wed, 21 Sep 2016 01:49:16 +0200 Subject: [PATCH] python/tests/test_pitchshift.py: catch runtime error here too --- python/tests/test_pitchshift.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.11.0