circuitpython/tests/extmod/json_dumps_extra.py
Jeff Epler 9113e171ba Throw TypeError when json-serializing invalid types
This behavior is in line with standard Python

Closes: #9768
2024-11-04 09:16:44 -06:00

6 lines
159 B
Python

# test uPy json behaviour that's not valid in CPy
# CIRCUITPY-CHANGE: This behavior matches CPython
print("SKIP")
raise SystemExit
print(json.dumps(b"1234"))