summaryrefslogtreecommitdiff
path: root/tests/skip_if.py
diff options
context:
space:
mode:
authorScott Shawcroft <scott.shawcroft@gmail.com>2017-11-16 10:33:48 -0800
committerScott Shawcroft <scott.shawcroft@gmail.com>2017-11-16 10:56:20 -0800
commit99153569f41e7c40a69ec64c25f3eb278c68c51e (patch)
tree1aee859743a8861f0fe4a18e92024b2fa86bd97d /tests/skip_if.py
parentecc47d5258acfd903d3aba03b336e248e85ff5c2 (diff)
tests: Fixup tests for 3.x on Rosie
Diffstat (limited to 'tests/skip_if.py')
-rw-r--r--tests/skip_if.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/skip_if.py b/tests/skip_if.py
index 7b1e06871..8d0ed8f21 100644
--- a/tests/skip_if.py
+++ b/tests/skip_if.py
@@ -27,6 +27,9 @@ def skip():
print("SKIP")
raise SystemExit
+def always():
+ skip()
+
def no_reversed():
import builtins
if "reversed" not in dir(builtins):
@@ -89,3 +92,13 @@ def no_slice_assign():
m2[1:3] = m1[0:2]
except TypeError:
skip()
+
+
+def no_reverse_ops():
+ class Foo:
+ def __radd__(self, other):
+ pass
+ try:
+ 5 + Foo()
+ except TypeError:
+ skip()