Skip to content

Commit e1bef13

Browse files
committed
Fix test
1 parent b24cf10 commit e1bef13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_json/test_tool.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,15 +107,15 @@ def test_non_ascii_infile(self):
107107
data = '{"msg": "\u3053\u3093\u306b\u3061\u306f"}'
108108
expect = textwrap.dedent('''\
109109
{
110-
"msg": "\u3053\u3093\u306b\u3061\u306f"
110+
"msg": "\\u3053\\u3093\\u306b\\u3061\\u306f"
111111
}
112112
''').encode()
113113

114114
infile = self._create_infile(data)
115115
rc, out, err = assert_python_ok('-m', 'json.tool', infile)
116116

117117
self.assertEqual(rc, 0)
118-
self.assertEqual(out.splitlines(), expect.encode().splitlines())
118+
self.assertEqual(out.splitlines(), expect.splitlines())
119119
self.assertEqual(err, b'')
120120

121121
def test_infile_outfile(self):

0 commit comments

Comments
 (0)