mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
bpo-44031: fix test_tabnanny failure in non-ascii CWD (GH-31014)
This commit is contained in:
parent
a4cb31927a
commit
108e66b6d2
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue