File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ def arrays_for_binary_ufunc():
28
28
"""
29
29
A pair of random, length-100 integer-dtype arrays, that are mostly 0.
30
30
"""
31
- a1 = np .random .randint (0 , 10 , 100 )
32
- a2 = np .random .randint (0 , 10 , 100 )
31
+ a1 = np .random .randint (0 , 10 , 100 , dtype = 'int64' )
32
+ a2 = np .random .randint (0 , 10 , 100 , dtype = 'int64' )
33
33
a1 [::3 ] = 0
34
34
a2 [::4 ] = 0
35
35
return a1 , a2
@@ -38,7 +38,7 @@ def arrays_for_binary_ufunc():
38
38
@pytest .mark .parametrize ("ufunc" , UNARY_UFUNCS )
39
39
@pytest .mark .parametrize ("sparse" , SPARSE , ids = SPARSE_IDS )
40
40
def test_unary_ufunc (ufunc , sparse ):
41
- array = np .random .randint (0 , 10 , 10 )
41
+ array = np .random .randint (0 , 10 , 10 , dtype = 'int64' )
42
42
array [::2 ] = 0
43
43
if sparse :
44
44
array = pd .SparseArray (array , dtype = pd .SparseDtype ('int' , 0 ))
You can’t perform that action at this time.
0 commit comments