Changeset aee840b for python/tests/utils.py
- Timestamp:
- Jan 12, 2014, 3:33:07 AM (10 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/tests/utils.py
r8203ae5 raee840b 12 12 datadir = os.path.join(os.path.dirname(__file__), rel_dir) 13 13 return glob.glob(os.path.join(datadir,'*.*')) 14 15 def 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] 14 21 15 22 def array_from_yaml_file(filename):
Note: See TracChangeset
for help on using the changeset viewer.