From bf33af41d77cd36ea414252afe7cdca79f0a90eb Mon Sep 17 00:00:00 2001 From: crawlingcub <86861129+crawlingcub@users.noreply.github.com> Date: Wed, 29 Sep 2021 16:11:30 -0500 Subject: [PATCH] Adjusting assertion threshold to fix flaky test --- pyfolio/tests/test_timeseries.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyfolio/tests/test_timeseries.py b/pyfolio/tests/test_timeseries.py index 17327bab7..fd592f596 100644 --- a/pyfolio/tests/test_timeseries.py +++ b/pyfolio/tests/test_timeseries.py @@ -338,14 +338,14 @@ def test_calc_bootstrap(self, true_mean, true_sd, n): assert_almost_equal( np.mean(samples), mean_of_mean, - 3, + 2, 'Mean of bootstrap does not match theoretical mean of' 'sampling distribution') assert_almost_equal( np.std(samples), sd_of_mean, - 3, + 2, 'SD of bootstrap does not match theoretical SD of' 'sampling distribution')