Skip to content

Commit 43acbf1

Browse files
committed
python#16549: fix test failures on Windows.
1 parent def6ee5 commit 43acbf1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎Lib/json/tests/test_tool.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def test_stdin_stdout(self):
4242
(sys.executable, '-m', 'json.tool'),
4343
stdin=subprocess.PIPE, stdout=subprocess.PIPE)
4444
out, err = proc.communicate(self.data.encode())
45-
self.assertEqual(out, self.expect.encode())
45+
self.assertEqual(out.splitlines(), self.expect.encode().splitlines())
4646
self.assertEqual(err, None)
4747

4848
def _create_infile(self):
@@ -55,7 +55,7 @@ def _create_infile(self):
5555
def test_infile_stdout(self):
5656
infile = self._create_infile()
5757
rc, out, err = assert_python_ok('-m', 'json.tool', infile)
58-
self.assertEqual(out, self.expect.encode())
58+
self.assertEqual(out.splitlines(), self.expect.encode().splitlines())
5959
self.assertEqual(err, b'')
6060

6161
def test_infile_outfile(self):

0 commit comments

Comments
 (0)