python/tests/test_mathutils.py: can also raise NotImplementedError (darwin)
authorPaul Brossier <piem@piem.org>
Mon, 16 May 2016 03:23:56 +0000 (05:23 +0200)
committerPaul Brossier <piem@piem.org>
Mon, 16 May 2016 03:23:56 +0000 (05:23 +0200)
python/tests/test_mathutils.py

index afdfd6a..f68fb11 100755 (executable)
@@ -28,7 +28,7 @@ class aubio_mathutils(TestCase):
         #print zip(a, b)
 
     def test_unwrap2pi_fails_on_list(self):
-        with self.assertRaises(TypeError):
+        with self.assertRaises((TypeError, NotImplementedError)):
             unwrap2pi(["23.","24.",25.])
 
     def test_unwrap2pi_takes_fvec(self):