summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_sys.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2012-08-04 22:25:31 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2012-08-04 22:25:31 (GMT)
commit6f1a40ffd3d756f2f83bf7c93b25401c6aeb1bdc (patch)
tree771ab17ad11ca7fdfa54caaaccec9967aee9b2f8 /Lib/test/test_sys.py
parentc4d974d3fa05658b45ab170ce1fb58020a3ea72c (diff)
parentec2d26930cf255dc95a325a0d3c6da7927398a96 (diff)
downloadcpython-6f1a40ffd3d756f2f83bf7c93b25401c6aeb1bdc.zip
cpython-6f1a40ffd3d756f2f83bf7c93b25401c6aeb1bdc.tar.gz
cpython-6f1a40ffd3d756f2f83bf7c93b25401c6aeb1bdc.tar.bz2
Merge universal newlines-related fixes (issue #13119)
Diffstat (limited to 'Lib/test/test_sys.py')
-rw-r--r--Lib/test/test_sys.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py
index d540ef7..2920a29 100644
--- a/Lib/test/test_sys.py
+++ b/Lib/test/test_sys.py
@@ -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))'],