Skip to content

Commit feac84c

Browse files
authored
COMPAT: try to fix import error on py310 (#41261)
1 parent c355ed1 commit feac84c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/io/json/test_readlines.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ def test_readjson_chunks_multiple_empty_lines(chunksize):
192192

193193
def test_readjson_unicode(monkeypatch):
194194
with tm.ensure_clean("test.json") as path:
195-
monkeypatch.setattr("_bootlocale.getpreferredencoding", lambda l: "cp949")
195+
monkeypatch.setattr("locale.getpreferredencoding", lambda l: "cp949")
196196
with open(path, "w", encoding="utf-8") as f:
197197
f.write('{"£©µÀÆÖÞßéöÿ":["АБВГДабвгд가"]}')
198198

0 commit comments

Comments
 (0)