summaryrefslogtreecommitdiffstatshomepage
path: root/tests/extmod/json_dumps_float.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/extmod/json_dumps_float.py')
-rw-r--r--tests/extmod/json_dumps_float.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/extmod/json_dumps_float.py b/tests/extmod/json_dumps_float.py
new file mode 100644
index 0000000000..25fbc5c512
--- /dev/null
+++ b/tests/extmod/json_dumps_float.py
@@ -0,0 +1,8 @@
+try:
+ import json
+except ImportError:
+ print("SKIP")
+ raise SystemExit
+
+print(json.dumps(1.2))
+print(json.dumps({1.5: "hi"}))