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 (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
54 54
55 def test_wrong_hop_size(self):55 def test_wrong_hop_size(self):
56 for p in list_of_sounds:56 for p in list_of_sounds:
57 f = source(p, 0, -1)57 try:
58 print f.hop_size58 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)
59 63
60 def test_zero_hop_size(self):64 def test_zero_hop_size(self):
61 for p in list_of_sounds:65 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