From 60cbfe8a0e4cc415686c1d37c1c6ae36da414712 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sat, 17 Sep 2016 03:09:42 +0200 Subject: [PATCH] python/tests/test_pitchshift.py: skip test on RuntimeError --- 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 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) -- 2.11.0