From 2018ff37d27c214144da913b672f2b46c07c77ba Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sat, 15 Nov 2025 16:49:10 +0100 Subject: [PATCH] [py] relax precision for cvec.phas tests --- python/tests/test_cvec.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/tests/test_cvec.py b/python/tests/test_cvec.py index 73ee6549..1b7b1ec1 100755 --- a/python/tests/test_cvec.py +++ b/python/tests/test_cvec.py @@ -1,7 +1,7 @@ #! /usr/bin/env python import numpy as np -from numpy.testing import TestCase, assert_equal +from numpy.testing import TestCase, assert_equal, assert_almost_equal from aubio import cvec, fvec, float_type wrong_type = 'float32' if float_type == 'float64' else 'float64' @@ -43,7 +43,7 @@ class aubio_cvec_test_case(TestCase): spec = cvec(1024) spec.phas[39:-1] = -np.pi assert_equal(spec.phas[0:39], 0) - assert_equal(spec.phas[39:-1], -np.pi) + assert_almost_equal(spec.phas[39:-1], -np.pi, decimal=7) assert_equal(spec.norm, 0) def test_assign_cvec_with_other_cvec(self): -- 2.11.0