1# test using an OrderedDict as the locals to construct a class
2
3try:
4    from ucollections import OrderedDict
5except ImportError:
6    try:
7        from collections import OrderedDict
8    except ImportError:
9        print("SKIP")
10        raise SystemExit
11
12if not hasattr(int, "__dict__"):
13    print("SKIP")
14    raise SystemExit
15
16
17A = type("A", (), OrderedDict(a=1, b=2, c=3, d=4, e=5))
18print([k for k in A.__dict__.keys() if not k.startswith("_")])
19