Skip to content

Commit d699070

Browse files
committed
Escape non-ascii characters in json.tool tests
1 parent 97152e9 commit d699070

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Lib/test/test_json/test_tool.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class TestTool(unittest.TestCase):
1111
data = """
1212
1313
[["blorpie"],[ "whoops" ] , [
14-
],\t"d-shtaeou",\r"🐍 and δ",
14+
],\t"d-shtaeou",\r"\N{snake} \u03B4 and \U0001D037",
1515
"i-vhbjkhnth", {"nifty":87}, {"morefield" :\tfalse,"field"
1616
:"yes"} ]
1717
"""
@@ -26,7 +26,7 @@ class TestTool(unittest.TestCase):
2626
],
2727
[],
2828
"d-shtaeou",
29-
"🐍 and δ",
29+
"\N{snake} \u03B4 and \U0001D037",
3030
"i-vhbjkhnth",
3131
{
3232
"nifty": 87
@@ -48,7 +48,7 @@ class TestTool(unittest.TestCase):
4848
],
4949
[],
5050
"d-shtaeou",
51-
"🐍 and δ",
51+
"\N{snake} \u03B4 and \U0001D037",
5252
"i-vhbjkhnth",
5353
{
5454
"nifty": 87

0 commit comments

Comments
 (0)