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
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.samplerate53 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.samplerate70 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)

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