summaryrefslogtreecommitdiff
path: root/python/tests/test_phasevoc.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/tests/test_phasevoc.py')
-rwxr-xr-xpython/tests/test_phasevoc.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/python/tests/test_phasevoc.py b/python/tests/test_phasevoc.py
index 23cbad5..957d3b1 100755
--- a/python/tests/test_phasevoc.py
+++ b/python/tests/test_phasevoc.py
@@ -46,7 +46,14 @@ class aubio_pvoc_test_case(TestCase):
r = f.rdo(s)
assert_equal ( t, 0.)
assert_equal ( s.norm, 0.)
- assert_equal ( s.phas, 0.)
+ try:
+ assert_equal ( s.phas, 0 )
+ except AssertionError:
+ assert_equal (s.phas[s.phas > 0], +np.pi)
+ assert_equal (s.phas[s.phas < 0], -np.pi)
+ assert_equal (np.abs(s.phas[np.abs(s.phas) != np.pi]), 0)
+ self.skipTest('pvoc(fvec(%d)).phas != +0, ' % win_s \
+ + 'This is expected when using fftw3 on powerpc.')
assert_equal ( r, 0.)
@params(