diff options
Diffstat (limited to 'tests/test_pyhegp.py')
-rw-r--r-- | tests/test_pyhegp.py | 6 |
1 files 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)) |