Skip to content

Commit 3413f4f

Browse files
committed
Format unicode output for JSON
1 parent dd25cf3 commit 3413f4f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Lib/test/test_json/test_tool.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class TestTool(unittest.TestCase):
1616
:"yes"} ]
1717
"""
1818

19-
expect_without_sort_keys = textwrap.dedent("""\
19+
expect_without_sort_keys = textwrap.dedent(r"""\
2020
[
2121
[
2222
"blorpie"
@@ -26,7 +26,7 @@ class TestTool(unittest.TestCase):
2626
],
2727
[],
2828
"d-shtaeou",
29-
"\xA7 \N{snake} \u03B4 and \U0001D037",
29+
"\u00a7 \ud83d\udc0d \u03b4 and \ud834\udc3",
3030
"i-vhbjkhnth",
3131
{
3232
"nifty": 87
@@ -38,7 +38,7 @@ class TestTool(unittest.TestCase):
3838
]
3939
""")
4040

41-
expect = textwrap.dedent("""\
41+
expect = textwrap.dedent(r"""\
4242
[
4343
[
4444
"blorpie"
@@ -48,7 +48,7 @@ class TestTool(unittest.TestCase):
4848
],
4949
[],
5050
"d-shtaeou",
51-
"\xA7 \N{snake} \u03B4 and \U0001D037",
51+
"\u00a7 \ud83d\udc0d \u03b4 and \ud834\udc37",
5252
"i-vhbjkhnth",
5353
{
5454
"nifty": 87

0 commit comments

Comments
 (0)