Changeset c76345e for python/tests
- Timestamp:
- Jan 31, 2014, 10:19:05 PM (11 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:
- a2ca72a
- Parents:
- 4949182
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/tests/test_source.py
r4949182 rc76345e 48 48 try: 49 49 f = source(p, -1) 50 except Exception, e:51 p rint e50 except ValueError, e: 51 pass 52 52 else: 53 self.fail(' does not fail with wrong samplerate')53 self.fail('negative samplerate does not raise ValueError') 54 54 55 55 def test_wrong_hop_size(self): … … 57 57 try: 58 58 f = source(p, 0, -1) 59 except Exception, e:60 p rint e59 except ValueError, e: 60 pass 61 61 else: 62 self.fail(' does not fail with wrong hop_size %d' % f.hop_size)62 self.fail('negative hop_size does not raise ValueError') 63 63 64 64 def test_zero_hop_size(self):
Note: See TracChangeset
for help on using the changeset viewer.