python/tests/test_specdesc.py: skip wrong name test
authorPaul Brossier <piem@piem.org>
Sat, 14 May 2016 03:34:15 +0000 (05:34 +0200)
committerPaul Brossier <piem@piem.org>
Sat, 14 May 2016 03:34:15 +0000 (05:34 +0200)
python/tests/test_specdesc.py

index c365f83..8663200 100755 (executable)
@@ -240,7 +240,9 @@ class aubio_specdesc_wrong(TestCase):
 
     def test_unknown(self):
         # FIXME should fail?
-        o = specdesc("unknown", 512)
+        with self.assertRaises(ValueError):
+            o = specdesc("unknown", 512)
+            self.skipTest('todo: new_specdesc should fail on wrong method')
 
 if __name__ == '__main__':
     from unittest import main