We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78ab745 commit 5e4da80Copy full SHA for 5e4da80
dpnp/tests/test_mathematical.py
@@ -727,11 +727,12 @@ def test_basic(self, dt):
727
assert_array_equal(res1, exp1)
728
assert_array_equal(res2, exp2)
729
730
- def test_out(self):
731
- a = numpy.array(5.7)
+ @pytest.mark.parametrize("dt", get_float_dtypes())
+ def test_out(self, dt):
732
+ a = numpy.array(5.7, dtype=dt)
733
ia = dpnp.array(a)
734
- out1 = numpy.empty(())
735
+ out1 = numpy.empty((), dtype=dt)
736
out2 = numpy.empty((), dtype=numpy.int32)
737
iout1, iout2 = dpnp.array(out1), dpnp.array(out2)
738
0 commit comments