Skip to content

Commit 690d25a

Browse files
ColCarrollJunpeng Lao
authored andcommitted
Assert almost equal
1 parent 475d126 commit 690d25a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymc3/tests/test_sampling.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ def test_ignores_observed(self):
353353
assert (prior['mu'] < 90).all()
354354
assert (prior['positive_mu'] > 90).all()
355355
assert (prior['x_obs'] < 90).all()
356-
assert (prior['positive_mu'] == np.abs(prior['mu'])).all()
356+
npt.assert_array_almost_equal(prior['positive_mu'], np.abs(prior['mu']), decimal=4)
357357

358358
def test_respects_shape(self):
359359
for shape in (2, (2,), (10, 2), (10, 10)):

0 commit comments

Comments
 (0)