From 4cea0a9b6183a6be17d679df305ac33752815b1a Mon Sep 17 00:00:00 2001 From: Fangchen Li Date: Sat, 1 May 2021 21:50:45 -0500 Subject: [PATCH] COMPAT: try to fix import error on py310 --- pandas/tests/io/json/test_readlines.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/tests/io/json/test_readlines.py b/pandas/tests/io/json/test_readlines.py index 6731c481f8935..abc65f2f1eda1 100644 --- a/pandas/tests/io/json/test_readlines.py +++ b/pandas/tests/io/json/test_readlines.py @@ -192,7 +192,7 @@ def test_readjson_chunks_multiple_empty_lines(chunksize): def test_readjson_unicode(monkeypatch): with tm.ensure_clean("test.json") as path: - monkeypatch.setattr("_bootlocale.getpreferredencoding", lambda l: "cp949") + monkeypatch.setattr("locale.getpreferredencoding", lambda l: "cp949") with open(path, "w", encoding="utf-8") as f: f.write('{"£©µÀÆÖÞßéöÿ":["АБВГДабвгд가"]}')