mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
#16549: merge with 3.3.
This commit is contained in:
commit
63cd0aa569
1 changed files with 2 additions and 2 deletions
|
@ -42,7 +42,7 @@ class TestTool(unittest.TestCase):
|
|||
(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 @@ class TestTool(unittest.TestCase):
|
|||
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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue