[Python-checkins] cpython (2.7): #16549: fix test failures on Windows.

ezio.melotti python-checkins at python.org
Thu Nov 29 04:10:59 CET 2012


http://hg.python.org/cpython/rev/4102c1a02417
changeset:   80644:4102c1a02417
branch:      2.7
parent:      80639:fa277ab588de
user:        Ezio Melotti <ezio.melotti at gmail.com>
date:        Thu Nov 29 05:08:54 2012 +0200
summary:
  #16549: fix test failures on Windows.

files:
  Lib/json/tests/test_tool.py |  4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/Lib/json/tests/test_tool.py b/Lib/json/tests/test_tool.py
--- a/Lib/json/tests/test_tool.py
+++ b/Lib/json/tests/test_tool.py
@@ -42,7 +42,7 @@
                 (sys.executable, '-m', 'json.tool'),
                 stdin=subprocess.PIPE, stdout=subprocess.PIPE)
         out, err = proc.communicate(self.data.encode())
-        self.assertEqual(out, self.expect.encode())
+        self.assertEqual(out.splitlines(), self.expect.encode().splitlines())
         self.assertEqual(err, None)
 
     def _create_infile(self):
@@ -55,7 +55,7 @@
     def test_infile_stdout(self):
         infile = self._create_infile()
         rc, out, err = assert_python_ok('-m', 'json.tool', infile)
-        self.assertEqual(out, self.expect.encode())
+        self.assertEqual(out.splitlines(), self.expect.encode().splitlines())
         self.assertEqual(err, b'')
 
     def test_infile_outfile(self):

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list