circuitpython/tests/basics/class_misc.py
2021-05-03 14:01:18 -07:00

10 lines
127 B
Python

# converting user instance to buffer
class C:
pass
c = C()
try:
d = bytes(c)
except TypeError:
print('TypeError')