@@ -193,7 +193,7 @@ def test_delimiter_with_usecols_and_parse_dates(all_parsers):
193193@pytest .mark .parametrize ("thousands" , ["_" , None ])
194194def test_decimal_and_exponential (python_parser_only , numeric_decimal , thousands ):
195195 # GH#31920
196- decimal_number_check (python_parser_only , numeric_decimal , thousands )
196+ decimal_number_check (python_parser_only , numeric_decimal , thousands , None )
197197
198198
199199@pytest .mark .parametrize ("thousands" , ["_" , None ])
@@ -203,21 +203,22 @@ def test_1000_sep_decimal_float_precision(
203203):
204204 # test decimal and thousand sep handling in across 'float_precision'
205205 # parsers
206- decimal_number_check (c_parser_only , numeric_decimal , thousands )
206+ decimal_number_check (c_parser_only , numeric_decimal , thousands , float_precision )
207207 text , value = numeric_decimal
208208 text = " " + text + " "
209209 if isinstance (value , str ): # the negative cases (parse as text)
210210 value = " " + value + " "
211- decimal_number_check (c_parser_only , (text , value ), thousands )
211+ decimal_number_check (c_parser_only , (text , value ), thousands , float_precision )
212212
213213
214- def decimal_number_check (parser , numeric_decimal , thousands ):
214+ def decimal_number_check (parser , numeric_decimal , thousands , float_precision ):
215215 # GH#31920
216216 value = numeric_decimal [0 ]
217217 if thousands is None and "_" in value :
218218 pytest .skip ("Skip test if no thousands sep is defined and sep is in value" )
219219 df = parser .read_csv (
220220 StringIO (value ),
221+ float_precision = float_precision ,
221222 sep = "|" ,
222223 thousands = thousands ,
223224 decimal = "," ,
0 commit comments