File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ def data(dtype):
131
131
@pytest .fixture
132
132
def data_missing (data ):
133
133
"""Length-2 array with [NA, Valid]"""
134
- return type (data )._from_sequence ([None , data [0 ]])
134
+ return type (data )._from_sequence ([None , data [0 ]], dtype = data . dtype )
135
135
136
136
137
137
@pytest .fixture (params = ["data" , "data_missing" ])
@@ -214,7 +214,8 @@ def data_for_sorting(data_for_grouping):
214
214
A < B < C
215
215
"""
216
216
return type (data_for_grouping )._from_sequence (
217
- [data_for_grouping [0 ], data_for_grouping [7 ], data_for_grouping [4 ]]
217
+ [data_for_grouping [0 ], data_for_grouping [7 ], data_for_grouping [4 ]],
218
+ dtype = data_for_grouping .dtype ,
218
219
)
219
220
220
221
@@ -227,7 +228,8 @@ def data_missing_for_sorting(data_for_grouping):
227
228
A < B and NA missing.
228
229
"""
229
230
return type (data_for_grouping )._from_sequence (
230
- [data_for_grouping [0 ], data_for_grouping [2 ], data_for_grouping [4 ]]
231
+ [data_for_grouping [0 ], data_for_grouping [2 ], data_for_grouping [4 ]],
232
+ dtype = data_for_grouping .dtype ,
231
233
)
232
234
233
235
You can’t perform that action at this time.
0 commit comments