From: Paul Brossier Date: Wed, 29 Aug 2012 17:06:08 +0000 (-0600) Subject: tests/testencoding.py: added first encoding test draft X-Git-Tag: 0.3.4-noleekmp3~8 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=750cb2c88415cd1c88f62b82a85269b075a08058;p=timeside.git tests/testencoding.py: added first encoding test draft --- diff --git a/tests/testencoding.py b/tests/testencoding.py index f670cc3..07f976a 100644 --- a/tests/testencoding.py +++ b/tests/testencoding.py @@ -2,6 +2,8 @@ from math import pi from numpy import arange, sin, zeros from unit_timeside import * +from timeside.encoder.gstutils import get_loop_thread + import os.path class TestEncoding(TestCase): @@ -13,7 +15,6 @@ class TestEncoding(TestCase): import tempfile self.tmpfile = tempfile.NamedTemporaryFile(delete=True) self.sink = self.tmpfile.name - self.sink = '/tmp/foo.foo' def testWav(self): "Test wav encoding" @@ -72,12 +73,6 @@ class TestEncoding(TestCase): if self.encoder.eod : break - self.encoder.release() - - import commands - (exitstatus, outtext) = commands.getstatusoutput('sndfile-info %s' % self.sink) - #print outtext - self.tmpfile.close() if __name__ == '__main__':