Showing the changes to python/tests (1 of 1 file). Show all
Unified · Split
| @@ -49,7 +49,7 @@ class aubio_sink_test_case(TestCase): · 48 unmodified lines | |||
| 49 | try: | 49 | try: |
| 50 | f = source(path, samplerate, hop_size) | 50 | f = source(path, samplerate, hop_size) |
| 51 | except RuntimeError as e: | 51 | except RuntimeError as e: |
| 52 | self.skipTest('failed opening with hop_s = {:d}, samplerate = {:d} ({:s})'.format(hop_size, samplerate, e)) | 52 | self.skipTest('failed opening with hop_s = {:d}, samplerate = {:d} ({:s})'.format(hop_size, samplerate, str(e))) |
| 53 | if samplerate == 0: samplerate = f.samplerate | 53 | if samplerate == 0: samplerate = f.samplerate |
| 54 | sink_path = get_tmp_sink_path() | 54 | sink_path = get_tmp_sink_path() |
| 55 | g = sink(sink_path, samplerate) | 55 | g = sink(sink_path, samplerate) |
| @@ -66,7 +66,7 @@ class aubio_sink_test_case(TestCase): · 10 unmodified lines | |||
| 66 | try: | 66 | try: |
| 67 | f = source(path, samplerate, hop_size) | 67 | f = source(path, samplerate, hop_size) |
| 68 | except RuntimeError as e: | 68 | except RuntimeError as e: |
| 69 | self.skipTest('failed opening with hop_s = {:d}, samplerate = {:d} ({:s})'.format(hop_size, samplerate, e)) | 69 | self.skipTest('failed opening with hop_s = {:d}, samplerate = {:d} ({:s})'.format(hop_size, samplerate, str(e))) |
| 70 | if samplerate == 0: samplerate = f.samplerate | 70 | if samplerate == 0: samplerate = f.samplerate |
| 71 | sink_path = get_tmp_sink_path() | 71 | sink_path = get_tmp_sink_path() |
| 72 | g = sink(sink_path, samplerate, channels = f.channels) | 72 | g = sink(sink_path, samplerate, channels = f.channels) |