Skip to content

Commit a4795ff

Browse files
Update test_absolute to run on iris
1 parent 00786c5 commit a4795ff

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tests/test_absolute.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ def test_absolute_int(type):
3131

3232
@pytest.mark.parametrize("type",
3333
[numpy.float64],
34-
ids=['float64'])
34+
ids=[pytest.floatMAX])
3535
def test_absolute_float(type):
36-
a = numpy.array([[-2., 3., 9.1], [-2., 5.0, -2], [1.0, -2., 5.0]])
36+
a = numpy.array([[-2., 3., 9.1], [-2., 5.0, -2], [1.0, -2., 5.0]], dtype = pytest.floatMAX)
3737
ia = inp.array(a)
3838

3939
result = inp.absolute(ia)
@@ -43,9 +43,10 @@ def test_absolute_float(type):
4343

4444
@pytest.mark.parametrize("type",
4545
[numpy.float64],
46-
ids=['float64'])
46+
ids=[pytest.floatMAX])
4747
def test_absolute_float_3(type):
48-
a = numpy.array([[[-2., 3.], [9.1, 0.2]], [[-2., 5.0], [-2, -1.2]], [[1.0, -2.], [5.0, -1.1]]])
48+
a = numpy.array([[[-2., 3.], [9.1, 0.2]], [[-2., 5.0], [-2, -1.2]], [[1.0, -2.], [5.0, -1.1]]],
49+
dtype = pytest.floatMAX)
4950
ia = inp.array(a)
5051

5152
result = inp.absolute(ia)

0 commit comments

Comments
 (0)