diff options
author | Damien George <damien.p.george@gmail.com> | 2019-08-22 15:45:13 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2019-08-22 15:45:13 +1000 |
commit | 2eb88f5df74263cf4b458b135d16a100eb7a8bd2 (patch) | |
tree | 41f860ebba3e5449cf4072eeb10aa6d8ce3a1670 /tests/extmod/ujson_loads.py | |
parent | 2dfa69efbbae92faf21360edd5e60c5a9145a2dc (diff) |
tests/extmod: Split json.loads of bytes/bytearray into separate test.
Because this functionality was introduced in Python 3.6.
Diffstat (limited to 'tests/extmod/ujson_loads.py')
-rw-r--r-- | tests/extmod/ujson_loads.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/tests/extmod/ujson_loads.py b/tests/extmod/ujson_loads.py index 43672d650..adba3c068 100644 --- a/tests/extmod/ujson_loads.py +++ b/tests/extmod/ujson_loads.py @@ -37,10 +37,6 @@ my_print(json.loads('"abc\\uabcd"')) # whitespace handling my_print(json.loads('{\n\t"a":[]\r\n, "b":[1], "c":{"3":4} \n\r\t\r\r\r\n}')) -# loading from bytes and bytearray -my_print(json.loads(b'[1,2]')) -my_print(json.loads(bytearray(b'[null]'))) - # loading nothing should raise exception try: json.loads('') |