# test MicroPython-specific features of struct try: import ustruct as struct except: try: import struct except ImportError: print("SKIP") raise SystemExit try: struct.pack('O', None) except ValueError: print("SKIP") raise SystemExit class A(): pass # pack and unpack objects o = A() s = struct.pack("