Skip to content

Commit 5e4da80

Browse files
committed
Peremetrize dtype of the out in TestFrexp::test_out
1 parent 78ab745 commit 5e4da80

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

dpnp/tests/test_mathematical.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -727,11 +727,12 @@ def test_basic(self, dt):
727727
assert_array_equal(res1, exp1)
728728
assert_array_equal(res2, exp2)
729729

730-
def test_out(self):
731-
a = numpy.array(5.7)
730+
@pytest.mark.parametrize("dt", get_float_dtypes())
731+
def test_out(self, dt):
732+
a = numpy.array(5.7, dtype=dt)
732733
ia = dpnp.array(a)
733734

734-
out1 = numpy.empty(())
735+
out1 = numpy.empty((), dtype=dt)
735736
out2 = numpy.empty((), dtype=numpy.int32)
736737
iout1, iout2 = dpnp.array(out1), dpnp.array(out2)
737738

0 commit comments

Comments
 (0)