History

[py] fix pvoc tests on powerpc

Paul Brossier committed 7 years ago

Commit c60e0481 parent 69aaefa1 file · +2 −2Browse files

Showing the changes to python (1 of 1 file). Show all

Unified · Split

python/tests/test_phasevoc.py+2−2
@@ -1,7 +1,7 @@
1#! /usr/bin/env python1#! /usr/bin/env python
2 2
3from numpy.testing import TestCase, assert_equal, assert_array_less3from numpy.testing import TestCase, assert_equal, assert_array_less
4from _tools import parametrize4from _tools import parametrize, skipTest
5from aubio import fvec, cvec, pvoc, float_type5from aubio import fvec, cvec, pvoc, float_type
6import numpy as np6import 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

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t