summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2012-08-04 22:15:06 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2012-08-04 22:15:06 (GMT)
commit894375a2fdb872c36810bd4d010dcb2cbd8f8c9c (patch)
treefa2f9c280c5db016d8fb60e81217e61a0ad1c1f0 /Lib
parent5ad514d281239479d957e21f602ff5c0d2ff5fec (diff)
downloadcpython-894375a2fdb872c36810bd4d010dcb2cbd8f8c9c.zip
cpython-894375a2fdb872c36810bd4d010dcb2cbd8f8c9c.tar.gz
cpython-894375a2fdb872c36810bd4d010dcb2cbd8f8c9c.tar.bz2
Fix test_sys under Windows (issue #13119)
Diffstat (limited to 'Lib')
-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 b055fcc..a52767a 100644
--- a/Lib/test/test_sys.py
+++ b/Lib/test/test_sys.py
@@ -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))'],