From b99e2a51435c08e7caf437fe05f14b9da1c39b53 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sat, 16 Sep 2017 23:55:33 +0200 Subject: [PATCH] python/tests/test_dct.py: pass with fftw --- python/tests/test_dct.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/python/tests/test_dct.py b/python/tests/test_dct.py index bba5a625..07c336d9 100755 --- a/python/tests/test_dct.py +++ b/python/tests/test_dct.py @@ -40,7 +40,7 @@ class aubio_dct(TestCase): a_in[1] = 0 a_in[3] = np.pi a_expected = aubio.fvec(precomputed_some_ones) - assert_almost_equal(a_dct(a_in), a_expected, decimal=7) + assert_almost_equal(a_dct(a_in), a_expected, decimal=6) def test_reconstruction(self): """ test that some_ones vector can be recontructed """ @@ -60,8 +60,9 @@ class aubio_dct(TestCase): def test_wrong_size(self): """ test that creation fails with a non power-of-two size """ # supports for non 2** fft sizes only when compiled with fftw3 + size = 13 try: with self.assertRaises(RuntimeError): - aubio.dct(13) + aubio.dct(size) except AssertionError: - self.skipTest('creating aubio.dct with size %d did not fail' % win_s) + self.skipTest('creating aubio.dct with size %d did not fail' % size) -- 2.11.0