@@ -1301,11 +1301,13 @@ def test_broadcast_arrays():
1301
1301
["linspace" , "logspace" , "geomspace" ],
1302
1302
ids = ["linspace" , "logspace" , "geomspace" ],
1303
1303
)
1304
- @pytest .mark .parametrize ("dtype" , [None , "int" , "float" ], ids = [None , "int" , "float" ])
1304
+ @pytest .mark .parametrize (
1305
+ "dtype" , [None , "int64" , "floatX" ], ids = [None , "int64" , "floatX" ]
1306
+ )
1305
1307
@pytest .mark .parametrize (
1306
1308
"start, stop, num_samples, endpoint, axis" ,
1307
1309
[
1308
- (1 , 10 , 50 , True , 0 ),
1310
+ (1 , 10 , 40 , True , 0 ),
1309
1311
(1 , 10 , 1 , True , 0 ),
1310
1312
(np .array ([5 , 6 ]), np .array ([[10 , 10 ], [10 , 10 ]]), 25 , True , 0 ),
1311
1313
(np .array ([5 , 6 ]), np .array ([[10 , 10 ], [10 , 10 ]]), 25 , True , 1 ),
@@ -1317,7 +1319,7 @@ def test_broadcast_arrays():
1317
1319
def test_space_ops (op , dtype , start , stop , num_samples , endpoint , axis ):
1318
1320
pt_func = getattr (pt , op )
1319
1321
np_func = getattr (np , op )
1320
- dtype = dtype + config . floatX [ - 2 :] if dtype is not None else dtype
1322
+ dtype = dtype if dtype != "floatX" else config . floatX
1321
1323
z = pt_func (start , stop , num_samples , endpoint = endpoint , axis = axis , dtype = dtype )
1322
1324
1323
1325
numpy_res = np_func (
0 commit comments