Skip to content

Commit 8d90ccb

Browse files
committed
Fix tests on Windows
1 parent 848a7be commit 8d90ccb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Lib/test/test_json/test_tool.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,9 @@ def test_colors(self):
287287
fp.write(input_)
288288
_, stdout, _ = assert_python_ok('-m', self.module, infile,
289289
PYTHON_COLORS='1')
290-
self.assertEqual(stdout.strip(), expected)
290+
stdout = stdout.replace(b'\r\n', b'\n') # normalize line endings
291+
stdout = stdout.strip()
292+
self.assertEqual(stdout, expected)
291293

292294

293295
@support.requires_subprocess()

0 commit comments

Comments
 (0)