Skip to content

Commit

Permalink
Merge pull request #554 from marioyc/fix-flaky-test-squashedgaussian
Browse files Browse the repository at this point in the history
decrease amount of decimal digits required to 4
  • Loading branch information
muupan authored Sep 10, 2019
2 parents 591597c + 2d6064f commit 91246c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_distribution.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ def test_sample_with_log_prob(self):
y, log_prob = self.distrib.sample_with_log_prob()
log_p = self.distrib.log_prob(y)
np.testing.assert_almost_equal(
log_p.array, log_prob.array, decimal=5)
log_p.array, log_prob.array, decimal=4)

def test_entropy(self):
with self.assertRaises(NotImplementedError):
Expand Down

0 comments on commit 91246c5

Please sign in to comment.