History

python/tests/test_source.py: really fail wrong hop size test

Paul Brossier committed 13 years ago

Commit 01e7be01 parent e6cde321 file · +6 −2Browse files

Showing the changes to python/tests/test_source.py (1 of 1 file). Show all

Unified · Split

python/tests/test_source.py+6−2
@@ -54,8 +54,12 @@ class aubio_source_test_case(TestCase): · 53 unmodified lines
5454
5555 def test_wrong_hop_size(self):
5656 for p in list_of_sounds:
57− f = source(p, 0, -1)
58− print f.hop_size
57+ try:
58+ f = source(p, 0, -1)
59+ except Exception, e:
60+ print e
61+ else:
62+ self.fail('does not fail with wrong hop_size %d' % f.hop_size)
5963
6064 def test_zero_hop_size(self):
6165 for p in list_of_sounds:

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t