Showing the changes to python (1 of 1 file). Show all
Unified · Split
| @@ -1,7 +1,7 @@ | |||
| 1 | #! /usr/bin/env python | 1 | #! /usr/bin/env python |
| 2 | 2 | ||
| 3 | from numpy.testing import TestCase | 3 | from numpy.testing import TestCase |
| 4 | from _tools import parametrize | 4 | from _tools import parametrize, skipTest |
| 5 | import numpy as np | 5 | import numpy as np |
| 6 | import aubio | 6 | import aubio |
| 7 | 7 | ||
| @@ -82,7 +82,7 @@ class Test_aubio_pitchshift_testruns(object): · 74 unmodified lines | |||
| 82 | try: | 82 | try: |
| 83 | self.o = aubio.pitchshift(mode, pitchscale, hop_size, samplerate) | 83 | self.o = aubio.pitchshift(mode, pitchscale, hop_size, samplerate) |
| 84 | except RuntimeError as e: | 84 | except RuntimeError as e: |
| 85 | self.skipTest("failed creating pitchshift ({})".format(e)) | 85 | skipTest("failed creating pitchshift ({})".format(e)) |
| 86 | test_length = self.o.hop_size * 50 | 86 | test_length = self.o.hop_size * 50 |
| 87 | read = 0 | 87 | read = 0 |
| 88 | # test on random | 88 | # test on random |