Changeset 5de7f98 for python


Ignore:
Timestamp:
Apr 30, 2016, 4:32:51 PM (9 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
fe5ff6d
Parents:
355c761
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/tests/test_sink.py

    r355c761 r5de7f98  
    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()
     
    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()
Note: See TracChangeset for help on using the changeset viewer.