aboutsummaryrefslogtreecommitdiff
path: root/tests/feature_check
diff options
context:
space:
mode:
Diffstat (limited to 'tests/feature_check')
-rw-r--r--tests/feature_check/reverse_ops.py9
-rw-r--r--tests/feature_check/reverse_ops.py.exp0
2 files changed, 9 insertions, 0 deletions
diff --git a/tests/feature_check/reverse_ops.py b/tests/feature_check/reverse_ops.py
new file mode 100644
index 000000000..668748bc5
--- /dev/null
+++ b/tests/feature_check/reverse_ops.py
@@ -0,0 +1,9 @@
+class Foo:
+
+ def __radd__(self, other):
+ pass
+
+try:
+ 5 + Foo()
+except TypeError:
+ print("TypeError")
diff --git a/tests/feature_check/reverse_ops.py.exp b/tests/feature_check/reverse_ops.py.exp
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/tests/feature_check/reverse_ops.py.exp