Showing the changes to python (1 of 1 file). Show all
Unified · Split
| @@ -1,7 +1,7 @@ | |||
| 1 | #! /usr/bin/env python | 1 | #! /usr/bin/env python |
| 2 | 2 | ||
| 3 | from numpy.testing import TestCase, assert_equal, assert_array_less | 3 | from numpy.testing import TestCase, assert_equal, assert_array_less |
| 4 | from _tools import parametrize | 4 | from _tools import parametrize, skipTest |
| 5 | from aubio import fvec, cvec, pvoc, float_type | 5 | from aubio import fvec, cvec, pvoc, float_type |
| 6 | import numpy as np | 6 | import numpy as np |
| 7 | 7 | ||
| @@ -51,7 +51,7 @@ class Test_aubio_pvoc_test_case(object): · 43 unmodified lines | |||
| 51 | assert_equal (s.phas[s.phas > 0], +np.pi) | 51 | assert_equal (s.phas[s.phas > 0], +np.pi) |
| 52 | assert_equal (s.phas[s.phas < 0], -np.pi) | 52 | assert_equal (s.phas[s.phas < 0], -np.pi) |
| 53 | assert_equal (np.abs(s.phas[np.abs(s.phas) != np.pi]), 0) | 53 | assert_equal (np.abs(s.phas[np.abs(s.phas) != np.pi]), 0) |
| 54 | self.skipTest('pvoc(fvec(%d)).phas != +0, ' % win_s \ | 54 | skipTest('pvoc(fvec(%d)).phas != +0, ' % win_s \ |
| 55 | + 'This is expected when using fftw3 on powerpc.') | 55 | + 'This is expected when using fftw3 on powerpc.') |
| 56 | assert_equal ( r, 0.) | 56 | assert_equal ( r, 0.) |
| 57 | 57 | ||