Skip to content

Commit f294de2

Browse files
committed
TST: avoid EncodingWarning
1 parent 77490ee commit f294de2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pandas/tests/io/test_common.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,6 @@ 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"])
518517
def test_codecs_encoding(encoding, format):
519518
# GH39247
@@ -523,7 +522,7 @@ def test_codecs_encoding(encoding, format):
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)
528527
with open(path, encoding=encoding) as handle:
529528
if format == "csv":

0 commit comments

Comments
 (0)