tests: Replace umodule with module everywhere.
This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
This commit is contained in:
10
tests/extmod/json_loads_bytes.py
Normal file
10
tests/extmod/json_loads_bytes.py
Normal file
@@ -0,0 +1,10 @@
|
||||
# test loading from bytes and bytearray (introduced in Python 3.6)
|
||||
|
||||
try:
|
||||
import json
|
||||
except ImportError:
|
||||
print("SKIP")
|
||||
raise SystemExit
|
||||
|
||||
print(json.loads(b"[1,2]"))
|
||||
print(json.loads(bytearray(b"[null]")))
|
||||
Reference in New Issue
Block a user