Showing the changes to python (1 of 1 file). Show all
Unified · Split
| @@ -7,7 +7,7 @@ from utils import list_all_sounds · 6 unmodified lines | ||
| 7 | 7 | from nose2.tools import params |
| 8 | 8 | |
| 9 | 9 | list_of_sounds = list_all_sounds('sounds') |
| 10 | −default_test_sound = list_of_sounds[0] | |
| 10 | +default_test_sound = None | |
| 11 | 11 | samplerates = [0, 44100, 8000, 32000] |
| 12 | 12 | hop_sizes = [512, 1024, 64] |
| 13 | 13 | |
| @@ -24,6 +24,7 @@ class aubio_source_test_case_base(TestCase): · 10 unmodified lines | ||
| 24 | 24 | |
| 25 | 25 | def setUp(self): |
| 26 | 26 | if not len(list_of_sounds): self.skipTest('add some sound files in \'python/tests/sounds\'') |
| 27 | + default_test_sound = list_of_sounds[0] | |
| 27 | 28 | |
| 28 | 29 | class aubio_source_test_case(aubio_source_test_case_base): |
| 29 | 30 | |
| @@ -113,6 +114,8 @@ class aubio_source_test_wrong_params(TestCase): · 83 unmodified lines | ||
| 113 | 114 | with self.assertRaises(RuntimeError): |
| 114 | 115 | f = source('path_to/unexisting file.mp3') |
| 115 | 116 | |
| 117 | +class aubio_source_test_wrong_params(aubio_source_test_case_base): | |
| 118 | + | |
| 116 | 119 | def test_wrong_samplerate(self): |
| 117 | 120 | with self.assertRaises(ValueError): |
| 118 | 121 | f = source(default_test_sound, -1) |