shithub: aubio

Download patch

ref: 12e91a680545bd819da14f4098ef8235c97f7da5
parent: 2763582da4af10d09edd4bb3f0fd91579cf396a3
author: Paul Brossier <piem@piem.org>
date: Thu Sep 22 20:07:36 EDT 2016

python/tests/test_specdesc.py: RuntimeError is now raised on wrong mode

--- a/python/tests/test_specdesc.py
+++ b/python/tests/test_specdesc.py
@@ -225,10 +225,8 @@
             specdesc("default", -10)
 
     def test_unknown(self):
-        # FIXME should fail?
-        with self.assertRaises(ValueError):
+        with self.assertRaises(RuntimeError):
             specdesc("unknown", 512)
-            self.skipTest('todo: new_specdesc should fail on wrong method')
 
 if __name__ == '__main__':
     main()