[Python-checkins] cpython (3.2): Fix test_sys under Windows (issue #13119)

antoine.pitrou python-checkins at python.org
Sun Aug 5 00:29:44 CEST 2012


http://hg.python.org/cpython/rev/4efad7fba42a
changeset: 78420:4efad7fba42a
branch: 3.2
parent: 78415:0f38948cc6df
user: Antoine Pitrou <solipsis at pitrou.net>
date: Sun Aug 05 00:15:06 2012 +0200
summary:
 Fix test_sys under Windows (issue #13119)
files:
 Lib/test/test_sys.py | 3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py
--- a/Lib/test/test_sys.py
+++ b/Lib/test/test_sys.py
@@ -523,7 +523,8 @@
 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))'],
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /