Ignore:
Timestamp:
Jan 12, 2014, 3:33:07 AM (10 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, pitchshift, sampler, timestretch, yinfft+
Children:
6f27719
Parents:
8203ae5
Message:

python/lib/aubio/slicing.py: error checking, add more tests, use get_default_sound

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/tests/utils.py

    r8203ae5 raee840b  
    1212    datadir = os.path.join(os.path.dirname(__file__), rel_dir)
    1313    return glob.glob(os.path.join(datadir,'*.*'))
     14
     15def get_default_test_sound(TestCase, rel_dir = 'sounds'):
     16    all_sounds = list_all_sounds(rel_dir)
     17    if len(all_sounds) == 0:
     18        TestCase.skipTest("please add some sounds in \'python/tests/sounds\'")
     19    else:
     20        return all_sounds[0]
    1421
    1522def array_from_yaml_file(filename):
Note: See TracChangeset for help on using the changeset viewer.