Logo
Explore Help
Register Sign In
fengqi/lv_micropython
1
0
Fork 0
You've already forked lv_micropython
Code Issues Pull Requests 1 Actions Packages Projects Releases Wiki Activity
lv_micropython/tests/extmod/json_loads_bytes.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
217 B
Python
Raw Normal View History

tests/extmod: Split json.loads of bytes/bytearray into separate test. Because this functionality was introduced in Python 3.6.
2019-08-22 15:45:13 +10:00
# test loading from bytes and bytearray (introduced in Python 3.6)
try:
tests: Replace umodule with module everywhere. This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2022-08-18 16:57:45 +10:00
import json
tests/extmod: Split json.loads of bytes/bytearray into separate test. Because this functionality was introduced in Python 3.6.
2019-08-22 15:45:13 +10:00
except ImportError:
tests: Replace umodule with module everywhere. This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2022-08-18 16:57:45 +10:00
print("SKIP")
raise SystemExit
tests/extmod: Split json.loads of bytes/bytearray into separate test. Because this functionality was introduced in Python 3.6.
2019-08-22 15:45:13 +10:00
print(json.loads(b"[1,2]"))
print(json.loads(bytearray(b"[null]")))
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 151ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API