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 @@ -130,7 +130,7 @@ def data(dtype):
130
130
@pytest .fixture
131
131
def data_missing (data ):
132
132
"""Length-2 array with [NA, Valid]"""
133
- return type (data )._from_sequence ([None , data [0 ]])
133
+ return type (data )._from_sequence ([None , data [0 ]], dtype = data . dtype )
134
134
135
135
136
136
@pytest .fixture (params = ["data" , "data_missing" ])
@@ -213,7 +213,8 @@ def data_for_sorting(data_for_grouping):
213
213
A < B < C
214
214
"""
215
215
return type (data_for_grouping )._from_sequence (
216
- [data_for_grouping [0 ], data_for_grouping [7 ], data_for_grouping [4 ]]
216
+ [data_for_grouping [0 ], data_for_grouping [7 ], data_for_grouping [4 ]],
217
+ dtype = data_for_grouping .dtype ,
217
218
)
218
219
219
220
@@ -226,7 +227,8 @@ def data_missing_for_sorting(data_for_grouping):
226
227
A < B and NA missing.
227
228
"""
228
229
return type (data_for_grouping )._from_sequence (
229
- [data_for_grouping [0 ], data_for_grouping [2 ], data_for_grouping [4 ]]
230
+ [data_for_grouping [0 ], data_for_grouping [2 ], data_for_grouping [4 ]],
231
+ dtype = data_for_grouping .dtype ,
230
232
)
231
233
232
234
You can’t perform that action at this time.
0 commit comments