ref: 4a1378c12ffe7fd518448f6a1ab00f99f0557286
parent: ab352628702f0b2d69284f3e18e1a6cd53011122
author: Paul Brossier <piem@piem.org>
date: Sun Feb 23 11:05:00 EST 2014
python/tests/test_sink.py: only skip test that use a source
--- a/python/tests/test_sink.py
+++ b/python/tests/test_sink.py
@@ -12,10 +12,6 @@
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 @@
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)