Ignore:
Timestamp:
Apr 18, 2016, 11:24:47 PM (8 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:
6db7600
Parents:
1c6fe64
Message:

python/tests/: prepare for python3 (see #33)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/tests/test_sink.py

    r1c6fe64 r689106e  
    4545                    vec = fvec(write)
    4646                    g(vec, write)
    47         except StandardError:
     47        except Exception:
    4848            pass
    4949        else:
     
    7171                    if read < f.hop_size: break
    7272                if 0:
    73                     print "read", "%.2fs" % (total_frames / float(f.samplerate) ),
    74                     print "(", total_frames, "frames", "in",
    75                     print total_frames / f.hop_size, "blocks", "at", "%dHz" % f.samplerate, ")",
    76                     print "from", f.uri,
    77                     print "to", g.uri
     73                    print ("read", "%.2fs" % (total_frames / float(f.samplerate) ) ),
     74                    print ("(", total_frames, "frames", "in" ),
     75                    print (total_frames / f.hop_size, "blocks", "at", "%dHz" % f.samplerate, ")" ),
     76                    print ("from", f.uri ),
     77                    print ("to", g.uri)
    7878                del_tmp_sink_path(sink_path)
    7979
     
    9696                    if read < f.hop_size: break
    9797                if 0:
    98                     print "read", "%.2fs" % (total_frames / float(f.samplerate) ),
    99                     print "(", total_frames, "frames", "in",
    100                     print f.channels, "channels", "in",
    101                     print total_frames / f.hop_size, "blocks", "at", "%dHz" % f.samplerate, ")",
    102                     print "from", f.uri,
    103                     print "to", g.uri,
    104                     print "in", g.channels, "channels"
     98                    print ("read", "%.2fs" % (total_frames / float(f.samplerate) ) ),
     99                    print ("(", total_frames, "frames", "in" ),
     100                    print (f.channels, "channels", "in" ),
     101                    print (total_frames / f.hop_size, "blocks", "at", "%dHz" % f.samplerate, ")" ),
     102                    print ("from", f.uri ),
     103                    print ("to", g.uri ),
     104                    print ("in", g.channels, "channels")
    105105                del_tmp_sink_path(sink_path)
    106106
Note: See TracChangeset for help on using the changeset viewer.