From cde0ca21bf79420386c7cb31de29b0f799f16655 Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 25 Sep 2014 17:35:56 +0100 Subject: py: Simplify JSON str printing (while still conforming to JSON spec). The JSON specs are relatively flexible and allow us to use one function to print strings, be they ascii, bytes or utf-8 encoded. --- tests/extmod/ujson_dumps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/extmod/ujson_dumps.py') diff --git a/tests/extmod/ujson_dumps.py b/tests/extmod/ujson_dumps.py index 6e858fd3f..0b8d239a0 100644 --- a/tests/extmod/ujson_dumps.py +++ b/tests/extmod/ujson_dumps.py @@ -9,7 +9,7 @@ print(json.dumps(None)) print(json.dumps(1)) print(json.dumps(1.2)) print(json.dumps('abc')) -print(json.dumps('\x01\x7e\x7f\x80\u1234')) +print(json.dumps('\x00\x01\x7e')) print(json.dumps([])) print(json.dumps([1])) print(json.dumps([1, 2])) -- cgit v1.2.3