mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Merge universal newlines-related fixes (issue #13119)
This commit is contained in:
commit
6f1a40ffd3
2 changed files with 30 additions and 27 deletions
|
@ -535,7 +535,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