mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Fix test_sys under Windows (issue #13119)
This commit is contained in:
parent
5ad514d281
commit
894375a2fd
1 changed files with 2 additions and 1 deletions
|
|
@ -523,7 +523,8 @@ class SysModuleTest(unittest.TestCase):
|
|||
p = subprocess.Popen([sys.executable, "-c", 'print(chr(0xa2))'],
|
||||
stdout = subprocess.PIPE, env=env)
|
||||
out = p.communicate()[0].strip()
|
||||
self.assertEqual(out, "\xa2\n".encode("cp424"))
|
||||
expected = ("\xa2" + os.linesep).encode("cp424")
|
||||
self.assertEqual(out, expected)
|
||||
|
||||
env["PYTHONIOENCODING"] = "ascii:replace"
|
||||
p = subprocess.Popen([sys.executable, "-c", 'print(chr(0xa2))'],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue