From: Paul Brossier Date: Sat, 17 Sep 2016 01:09:42 +0000 (+0200) Subject: python/tests/test_pitchshift.py: skip test on RuntimeError X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=60cbfe8a0e4cc415686c1d37c1c6ae36da414712;p=aubio.git python/tests/test_pitchshift.py: skip test on RuntimeError --- diff --git a/python/tests/test_pitchshift.py b/python/tests/test_pitchshift.py index 37d99267..27b675a9 100755 --- a/python/tests/test_pitchshift.py +++ b/python/tests/test_pitchshift.py @@ -6,7 +6,10 @@ import aubio class aubio_pitchshift(TestCase): def setUp(self): - self.o = aubio.pitchshift() + try: + self.o = aubio.pitchshift() + except RuntimeError as e: + self.skipTest("creating aubio.pitchshift failed (recompile with rubberband?)") def test_default_creation(self): self.assertEqual(self.o.get_pitchscale(), 1)