1# test sys.getsizeof() function
2
3try:
4    import usys as sys
5except ImportError:
6    import sys
7try:
8    sys.getsizeof
9except AttributeError:
10    print('SKIP')
11    raise SystemExit
12
13print(sys.getsizeof([1, 2]) >= 2)
14print(sys.getsizeof({1: 2}) >= 2)
15
16class A:
17    pass
18print(sys.getsizeof(A()) > 0)
19
20# Only test deque if we have it
21try:
22    from ucollections import deque
23    assert sys.getsizeof(deque((), 1)) > 0
24except ImportError:
25    pass
26