[Python-checkins] cpython (merge 3.2 -> 3.3): #16549: merge with 3.2.

ezio.melotti python-checkins at python.org
Thu Nov 29 04:11:01 CET 2012


http://hg.python.org/cpython/rev/e26345437f9f
changeset:   80646:e26345437f9f
branch:      3.3
parent:      80641:73a7e6ecd0e1
parent:      80645:4ec9f0b0f8f1
user:        Ezio Melotti <ezio.melotti at gmail.com>
date:        Thu Nov 29 05:10:31 2012 +0200
summary:
  #16549: merge with 3.2.

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


diff --git a/Lib/test/json_tests/test_tool.py b/Lib/test/json_tests/test_tool.py
--- a/Lib/test/json_tests/test_tool.py
+++ b/Lib/test/json_tests/test_tool.py
@@ -42,7 +42,7 @@
                 (sys.executable, '-m', 'json.tool'),
                 stdin=subprocess.PIPE, stdout=subprocess.PIPE) as proc:
             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