From: Paul Brossier Date: Sat, 30 Apr 2016 14:32:51 +0000 (+0200) Subject: python/tests/test_sink.py: fix format for python3 X-Git-Tag: 0.4.4~300^2~153 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=5de7f98fb882a76a2a2751c09a34e1b10d224a4e;p=aubio.git python/tests/test_sink.py: fix format for python3 --- diff --git a/python/tests/test_sink.py b/python/tests/test_sink.py index 6e9be4d8..24ee9a54 100755 --- a/python/tests/test_sink.py +++ b/python/tests/test_sink.py @@ -49,7 +49,7 @@ class aubio_sink_test_case(TestCase): try: f = source(path, samplerate, hop_size) except RuntimeError as e: - self.skipTest('failed opening with hop_s = {:d}, samplerate = {:d} ({:s})'.format(hop_size, samplerate, e)) + self.skipTest('failed opening with hop_s = {:d}, samplerate = {:d} ({:s})'.format(hop_size, samplerate, str(e))) if samplerate == 0: samplerate = f.samplerate sink_path = get_tmp_sink_path() g = sink(sink_path, samplerate) @@ -66,7 +66,7 @@ class aubio_sink_test_case(TestCase): try: f = source(path, samplerate, hop_size) except RuntimeError as e: - self.skipTest('failed opening with hop_s = {:d}, samplerate = {:d} ({:s})'.format(hop_size, samplerate, e)) + self.skipTest('failed opening with hop_s = {:d}, samplerate = {:d} ({:s})'.format(hop_size, samplerate, str(e))) if samplerate == 0: samplerate = f.samplerate sink_path = get_tmp_sink_path() g = sink(sink_path, samplerate, channels = f.channels)