Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Checkins

cpython (3.2): Fix test_sys under Windows (issue #13119)

 

 

Python checkins RSS feed   Index | Next | Previous | View Threaded


python-checkins at python

Aug 4, 2012, 3:29 PM

Post #1 of 1 (44 views)
Permalink
cpython (3.2): Fix test_sys under Windows (issue #13119)

http://hg.python.org/cpython/rev/4efad7fba42a
changeset: 78420:4efad7fba42a
branch: 3.2
parent: 78415:0f38948cc6df
user: Antoine Pitrou <solipsis [at] pitrou>
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

Python checkins RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.