aboutsummaryrefslogtreecommitdiff
path: root/tests/extmod/ujson_dumps_ordereddict.py
blob: c6f4a8fcb7942d49cf8ef7e241ee7793f0833ace (plain)
1
2
3
4
5
6
7
8
9
10
11
12
try:
    import ujson as json
    from ucollections import OrderedDict
except ImportError:
    try:
        import json
        from collections import OrderedDict
    except ImportError:
        print("SKIP")
        raise SystemExit

print(json.dumps(OrderedDict(((1, 2), (3, 4)))))