Showing the changes to python (1 of 1 file). Show all
Unified · Split
| @@ -40,7 +40,7 @@ class aubio_dct(TestCase): · 39 unmodified lines | ||
| 40 | 40 | a_in[1] = 0 |
| 41 | 41 | a_in[3] = np.pi |
| 42 | 42 | a_expected = aubio.fvec(precomputed_some_ones) |
| 43 | − assert_almost_equal(a_dct(a_in), a_expected, decimal=7) | |
| 43 | + assert_almost_equal(a_dct(a_in), a_expected, decimal=6) | |
| 44 | 44 | |
| 45 | 45 | def test_reconstruction(self): |
| 46 | 46 | """ test that some_ones vector can be recontructed """ |
| @@ -60,8 +60,9 @@ class aubio_dct(TestCase): · 13 unmodified lines | ||
| 60 | 60 | def test_wrong_size(self): |
| 61 | 61 | """ test that creation fails with a non power-of-two size """ |
| 62 | 62 | # supports for non 2** fft sizes only when compiled with fftw3 |
| 63 | + size = 13 | |
| 63 | 64 | try: |
| 64 | 65 | with self.assertRaises(RuntimeError): |
| 65 | − aubio.dct(13) | |
| 66 | + aubio.dct(size) | |
| 66 | 67 | except AssertionError: |
| 67 | − self.skipTest('creating aubio.dct with size %d did not fail' % win_s) | |
| 68 | + self.skipTest('creating aubio.dct with size %d did not fail' % size) | |