circuitpython/tests/feature_check/reverse_ops.py

10 lines
117 B
Python

class Foo:
def __radd__(self, other):
pass
try:
5 + Foo()
except TypeError:
print("TypeError")