d6f9d64d97
This test should be run only if support for reverse ops is enabled, so the corresponding feature_check is added to run-tests.
10 lines
117 B
Python
10 lines
117 B
Python
class Foo:
|
|
|
|
def __radd__(self, other):
|
|
pass
|
|
|
|
try:
|
|
5 + Foo()
|
|
except TypeError:
|
|
print("TypeError")
|