From 152efdf9b215ad48853b1f5db9d77bfc63ec0972 Mon Sep 17 00:00:00 2001 From: Daisuke Oyama Date: Mon, 23 Oct 2017 10:29:38 +0900 Subject: [PATCH] TEST: Set atol Test sometimes fails otherwise --- quantecon/game_theory/tests/test_random.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quantecon/game_theory/tests/test_random.py b/quantecon/game_theory/tests/test_random.py index d4ac714ca..239621efc 100644 --- a/quantecon/game_theory/tests/test_random.py +++ b/quantecon/game_theory/tests/test_random.py @@ -31,7 +31,7 @@ def test_covariance_game(): for a in np.ndindex(*nums_actions): for i in range(N-1): payoff_profile = g.payoff_profile_array[a] - assert_allclose(payoff_profile[i], payoff_profile[-1]) + assert_allclose(payoff_profile[i], payoff_profile[-1], atol=1e-8) rho = -1 / (N - 1) g = covariance_game(nums_actions, rho=rho)