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 | 49 | try: |
| 50 | 50 | f = source(path, samplerate, hop_size) |
| 51 | 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 | 53 | if samplerate == 0: samplerate = f.samplerate |
| 54 | 54 | sink_path = get_tmp_sink_path() |
| 55 | 55 | g = sink(sink_path, samplerate) |
| @@ -66,7 +66,7 @@ class aubio_sink_test_case(TestCase): · 10 unmodified lines | ||
| 66 | 66 | try: |
| 67 | 67 | f = source(path, samplerate, hop_size) |
| 68 | 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 | 70 | if samplerate == 0: samplerate = f.samplerate |
| 71 | 71 | sink_path = get_tmp_sink_path() |
| 72 | 72 | g = sink(sink_path, samplerate, channels = f.channels) |