aboutsummaryrefslogtreecommitdiff
path: root/tests/extmod/ujson_dumps_float.py
diff options
context:
space:
mode:
authorDamien George2015-06-25 10:50:00 +0100
committerDamien George2015-06-25 10:50:00 +0100
commite44c1d3acef6d1a81e9496d1a4a8c4d12e2fd0a6 (patch)
tree4e52070b638ed299323e9ee0f9a151740e1da06e /tests/extmod/ujson_dumps_float.py
parent186b355b286d00a46b3eb1db6341c17763f30f10 (diff)
tests: Split out json float tests to separate files.
Diffstat (limited to 'tests/extmod/ujson_dumps_float.py')
-rw-r--r--tests/extmod/ujson_dumps_float.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/extmod/ujson_dumps_float.py b/tests/extmod/ujson_dumps_float.py
new file mode 100644
index 000000000..f6ba5f113
--- /dev/null
+++ b/tests/extmod/ujson_dumps_float.py
@@ -0,0 +1,6 @@
+try:
+ import ujson as json
+except ImportError:
+ import json
+
+print(json.dumps(1.2))