From: Paul Brossier Date: Wed, 19 Dec 2018 18:47:34 +0000 (+0100) Subject: [test] pitchshift test to use skipTest X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=5f57ea953c01b88705d8e9d1a3b81d9ec68e6267;p=aubio.git [test] pitchshift test to use skipTest --- diff --git a/python/tests/test_pitchshift.py b/python/tests/test_pitchshift.py index 88e03494..4d3dd3f4 100755 --- a/python/tests/test_pitchshift.py +++ b/python/tests/test_pitchshift.py @@ -1,7 +1,7 @@ #! /usr/bin/env python from numpy.testing import TestCase -from _tools import parametrize +from _tools import parametrize, skipTest import numpy as np import aubio @@ -82,7 +82,7 @@ class Test_aubio_pitchshift_testruns(object): try: self.o = aubio.pitchshift(mode, pitchscale, hop_size, samplerate) except RuntimeError as e: - self.skipTest("failed creating pitchshift ({})".format(e)) + skipTest("failed creating pitchshift ({})".format(e)) test_length = self.o.hop_size * 50 read = 0 # test on random