From: Paul Brossier Date: Sun, 23 Feb 2014 19:05:00 +0000 (-0300) Subject: python/tests/test_sink.py: only skip test that use a source X-Git-Tag: 0.4.1~27 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=4a1378c12ffe7fd518448f6a1ab00f99f0557286;p=aubio.git python/tests/test_sink.py: only skip test that use a source --- diff --git a/python/tests/test_sink.py b/python/tests/test_sink.py index 5c8aa8f7..44a12fb1 100755 --- a/python/tests/test_sink.py +++ b/python/tests/test_sink.py @@ -12,10 +12,6 @@ many_files = 300 # 256 opened files is too much class aubio_sink_test_case(TestCase): - def setUp(self): - if not len(list_of_sounds): - self.skipTest('add some sound files in \'python/tests/sounds\'') - def test_many_sinks(self): from tempfile import mkdtemp import os.path @@ -56,7 +52,11 @@ class aubio_sink_test_case(TestCase): g.close() shutil.rmtree(tmpdir) - def test_read(self): + def test_read_and_write(self): + + if not len(list_of_sounds): + self.skipTest('add some sound files in \'python/tests/sounds\'') + for path in list_of_sounds: for samplerate, hop_size in zip([0, 44100, 8000, 32000], [512, 1024, 64, 256]): f = source(path, samplerate, hop_size)