ref: 5de7f98fb882a76a2a2751c09a34e1b10d224a4e
parent: 355c761d828d0931af87fed503780e726f7b22bc
author: Paul Brossier <piem@piem.org>
date: Sat Apr 30 12:32:51 EDT 2016
python/tests/test_sink.py: fix format for python3
--- a/python/tests/test_sink.py
+++ b/python/tests/test_sink.py
@@ -49,7 +49,7 @@
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 @@
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)