History

python/tests/test_sink.py: fix format for python3

Paul Brossier committed 10 years ago

Commit 5de7f981 parent 355c7611 file · +2 −2Browse files

Showing the changes to python/tests (1 of 1 file). Show all

Unified · Split

python/tests/test_sink.py+2−2
@@ -49,7 +49,7 @@ class aubio_sink_test_case(TestCase): · 48 unmodified lines
4949 try:
5050 f = source(path, samplerate, hop_size)
5151 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)))
5353 if samplerate == 0: samplerate = f.samplerate
5454 sink_path = get_tmp_sink_path()
5555 g = sink(sink_path, samplerate)
@@ -66,7 +66,7 @@ class aubio_sink_test_case(TestCase): · 10 unmodified lines
6666 try:
6767 f = source(path, samplerate, hop_size)
6868 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)))
7070 if samplerate == 0: samplerate = f.samplerate
7171 sink_path = get_tmp_sink_path()
7272 g = sink(sink_path, samplerate, channels = f.channels)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t