Skip to content

Commit

Permalink
using AllClose for sqrt test
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesp committed May 5, 2021
1 parent 3531826 commit 79f6034
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/iris/tests/test_basic_maths.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ def test_square_root(self):

e = a ** 0.5

self.assertArrayEqual(e.data, a.data ** 0.5)
self.assertArrayAllClose(e.data, a.data ** 0.5)
self.assertCML(e, ("analysis", "sqrt.cml"))
self.assertRaises(ValueError, iris.analysis.maths.exponentiate, a, 0.3)

Expand Down

0 comments on commit 79f6034

Please sign in to comment.