File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -513,19 +513,18 @@ def test_is_fsspec_url_chained():
513513 assert not icom .is_fsspec_url ("filecache::://pandas/test.csv" )
514514
515515
516- @pytest .mark .parametrize ("encoding" , [None , "utf-8" ])
517516@pytest .mark .parametrize ("format" , ["csv" , "json" ])
518- def test_codecs_encoding (encoding , format ):
517+ def test_codecs_encoding (format ):
519518 # GH39247
520519 expected = pd .DataFrame (
521520 1.1 * np .arange (120 ).reshape ((30 , 4 )),
522521 columns = pd .Index (list ("ABCD" )),
523522 index = pd .Index ([f"i-{ i } " for i in range (30 )]),
524523 )
525524 with tm .ensure_clean () as path :
526- with open (path , mode = "w" , encoding = encoding ) as handle :
525+ with open (path , mode = "w" , encoding = "utf-8" ) as handle :
527526 getattr (expected , f"to_{ format } " )(handle )
528- with open (path , encoding = encoding ) as handle :
527+ with open (path , encoding = 'utf-8' ) as handle :
529528 if format == "csv" :
530529 df = pd .read_csv (handle , index_col = 0 )
531530 else :
You can’t perform that action at this time.
0 commit comments