From 4a1378c12ffe7fd518448f6a1ab00f99f0557286 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sun, 23 Feb 2014 16:05:00 -0300 Subject: [PATCH] python/tests/test_sink.py: only skip test that use a source --- python/tests/test_sink.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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) -- 2.11.0