projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
69aaefa
)
[py] fix pvoc tests on powerpc
author
Paul Brossier
<piem@piem.org>
Thu, 20 Jun 2019 17:38:39 +0000
(19:38 +0200)
committer
Paul Brossier
<piem@piem.org>
Thu, 20 Jun 2019 17:38:39 +0000
(19:38 +0200)
python/tests/test_phasevoc.py
patch
|
blob
|
history
diff --git
a/python/tests/test_phasevoc.py
b/python/tests/test_phasevoc.py
index
cf3b7ac
..
b228269
100755
(executable)
--- a/
python/tests/test_phasevoc.py
+++ b/
python/tests/test_phasevoc.py
@@
-1,7
+1,7
@@
#! /usr/bin/env python
from numpy.testing import TestCase, assert_equal, assert_array_less
#! /usr/bin/env python
from numpy.testing import TestCase, assert_equal, assert_array_less
-from _tools import parametrize
+from _tools import parametrize
, skipTest
from aubio import fvec, cvec, pvoc, float_type
import numpy as np
from aubio import fvec, cvec, pvoc, float_type
import numpy as np
@@
-51,7
+51,7
@@
class Test_aubio_pvoc_test_case(object):
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)
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)
- s
elf.s
kipTest('pvoc(fvec(%d)).phas != +0, ' % win_s \
+ skipTest('pvoc(fvec(%d)).phas != +0, ' % win_s \
+ 'This is expected when using fftw3 on powerpc.')
assert_equal ( r, 0.)
+ 'This is expected when using fftw3 on powerpc.')
assert_equal ( r, 0.)