From a361ab834bd9ca6a324c832ffdaa6d74df94d995 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Wed, 6 Aug 2025 22:23:39 +0100 Subject: Loosen relative tolerance in test_pool_stats. * tests/test_pyhegp.py (test_pool_stats): Set relative tolerance to 1e-6. --- tests/test_pyhegp.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_pyhegp.py b/tests/test_pyhegp.py index 7f95215..c355df5 100644 --- a/tests/test_pyhegp.py +++ b/tests/test_pyhegp.py @@ -38,8 +38,10 @@ def test_pool_stats(pools): np.std(pool, axis=0, ddof=1)) for pool in pools]) assert (pooled_stats.n == len(combined_pool) - and pooled_stats.mean == approx(np.mean(combined_pool, axis=0)) - and pooled_stats.std == approx(np.std(combined_pool, axis=0, ddof=1))) + and pooled_stats.mean == approx(np.mean(combined_pool, axis=0), + rel=1e-6) + and pooled_stats.std == approx(np.std(combined_pool, axis=0, ddof=1), + rel=1e-6)) def no_column_zero_standard_deviation(matrix): return not np.any(np.isclose(np.std(matrix, axis=0), 0)) -- cgit 1.4.1