Changeset 81f738e


Ignore:
Timestamp:
Feb 28, 2017, 1:32:25 AM (7 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, sampler
Children:
72af472
Parents:
fcb6e8c
Message:

python/tests/test_sink.py: trivial test for sink 'with' interface (PEP 343)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/tests/test_sink.py

    rfcb6e8c r81f738e  
    117117        del_tmp_sink_path(sink_path)
    118118
     119    def test_read_with(self):
     120        sink_path =get_tmp_sink_path()
     121        vec = fvec(128)
     122        with sink(sink_path, samplerate) as g:
     123            for i in range(10):
     124                g(vec, 128)
     125
    119126if __name__ == '__main__':
    120127    main()
Note: See TracChangeset for help on using the changeset viewer.