diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2022-02-01 10:31:57 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-01 10:31:57 (GMT) |
commit | 108e66b6d23efd0fc2966163ead9434b328c5f17 (patch) | |
tree | e5ea9fc838da361ef944cbfaaa118796ddaf41c4 | |
parent | a4cb31927a1f0ee31025ea1ca82fcbfad44755dc (diff) | |
download | cpython-108e66b6d23efd0fc2966163ead9434b328c5f17.zip cpython-108e66b6d23efd0fc2966163ead9434b328c5f17.tar.gz cpython-108e66b6d23efd0fc2966163ead9434b328c5f17.tar.bz2 |
bpo-44031: fix test_tabnanny failure in non-ascii CWD (GH-31014)
-rw-r--r-- | Lib/test/test_tabnanny.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_tabnanny.py b/Lib/test/test_tabnanny.py index 4dfbd29..59fdfc5 100644 --- a/Lib/test/test_tabnanny.py +++ b/Lib/test/test_tabnanny.py @@ -293,8 +293,8 @@ class TestCommandLine(TestCase): _, out, err = script_helper.assert_python_ok('-m', 'tabnanny', *args) # Note: The `splitlines()` will solve the problem of CRLF(\r) added # by OS Windows. - out = out.decode('ascii') - err = err.decode('ascii') + out = os.fsdecode(out) + err = os.fsdecode(err) if partial: for std, output in ((stdout, out), (stderr, err)): _output = output.splitlines() |