diff options
author | Inada Naoki <songofacandy@gmail.com> | 2022-04-22 01:39:24 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-22 01:39:24 (GMT) |
commit | 1317b70f89606bd14597116b7ab68a968ea6c017 (patch) | |
tree | 84cefd08afe31ffeb3f7a1f7ad1c9d2688abb168 /Lib/test/test_cmd_line.py | |
parent | efe7fd4170bb809ed46cac35c6a9007d5b794e7e (diff) | |
download | cpython-1317b70f89606bd14597116b7ab68a968ea6c017.zip cpython-1317b70f89606bd14597116b7ab68a968ea6c017.tar.gz cpython-1317b70f89606bd14597116b7ab68a968ea6c017.tar.bz2 |
gh-91156: Use `locale.getencoding()` instead of getpreferredencoding (GH-91732)
Co-authored-by: Victor Stinner <vstinner@python.org>
Diffstat (limited to 'Lib/test/test_cmd_line.py')
-rw-r--r-- | Lib/test/test_cmd_line.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_cmd_line.py b/Lib/test/test_cmd_line.py index 84eab71..e8f1964 100644 --- a/Lib/test/test_cmd_line.py +++ b/Lib/test/test_cmd_line.py @@ -216,7 +216,7 @@ class CmdLineTest(unittest.TestCase): code = ( b'import locale; ' b'print(ascii("' + undecodable + b'"), ' - b'locale.getpreferredencoding())') + b'locale.getencoding())') p = subprocess.Popen( [sys.executable, "-c", code], stdout=subprocess.PIPE, stderr=subprocess.STDOUT, |