Skip to content

Commit c3289ef

Browse files
committed
Limit the arange length in test with dpnp.dot to fit the precision limit for complex64
1 parent 9ced8bf commit c3289ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dpnp/tests/test_product.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ def test_ones(self, dtype):
199199
@pytest.mark.parametrize("dtype", get_all_dtypes(no_bool=True))
200200
def test_arange(self, dtype):
201201
n = 10**2
202-
m = 10**3 if dtype is not dpnp.float32 else 10**2
202+
m = 10**3 if dtype not in [dpnp.float32, dpnp.complex64] else 10**2
203203
a = numpy.hstack((numpy.arange(n, dtype=dtype),) * m)
204204
b = numpy.flipud(a)
205205
ia = dpnp.array(a)

0 commit comments

Comments
 (0)