Skip to content
Closed
Prev Previous commit
Next Next commit
Format unicode output for JSON
  • Loading branch information
dhimmel committed Feb 26, 2017
commit 3413f4fe4d88e4e6dbd10fe365cef94319572600
8 changes: 4 additions & 4 deletions Lib/test/test_json/test_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class TestTool(unittest.TestCase):
:"yes"} ]
"""

expect_without_sort_keys = textwrap.dedent("""\
expect_without_sort_keys = textwrap.dedent(r"""\
[
[
"blorpie"
Expand All @@ -26,7 +26,7 @@ class TestTool(unittest.TestCase):
],
[],
"d-shtaeou",
"\xA7 \N{snake} \u03B4 and \U0001D037",
"\u00a7 \ud83d\udc0d \u03b4 and \ud834\udc3",
"i-vhbjkhnth",
{
"nifty": 87
Expand All @@ -38,7 +38,7 @@ class TestTool(unittest.TestCase):
]
""")

expect = textwrap.dedent("""\
expect = textwrap.dedent(r"""\
[
[
"blorpie"
Expand All @@ -48,7 +48,7 @@ class TestTool(unittest.TestCase):
],
[],
"d-shtaeou",
"\xA7 \N{snake} \u03B4 and \U0001D037",
"\u00a7 \ud83d\udc0d \u03b4 and \ud834\udc37",
"i-vhbjkhnth",
{
"nifty": 87
Expand Down